fprintf

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 6: Line 6:
 
Return Value: None.
 
Return Value: None.
 
|
 
|
Syntax: fprintf(filename,text)
+
[[Syntax]]: fprintf(filename, text)
 
   
 
   
 
The fprintf() function is a direct interface to the the C library function of the same name.  It works the same as [[sprintf]] but appends its output to specified filename.
 
The fprintf() function is a direct interface to the the C library function of the same name.  It works the same as [[sprintf]] but appends its output to specified filename.
Line 26: Line 26:
 
[[category:Davinci Core]]
 
[[category:Davinci Core]]
 
[[category:String Functions]]
 
[[category:String Functions]]
 +
[[category:64-bit]]

Latest revision as of 10:37, 6 July 2009



64-bit SafeYes

Description

Print formatted output to a file

Arguments and Return Values

Arguments: A filename and string

Return Value: None.

Usage

Syntax: fprintf(filename, text)

The fprintf() function is a direct interface to the the C library function of the same name. It works the same as sprintf but appends its output to specified filename.

Examples

dv> fprintf("fpf.txt","The value of 3+4 is %d\n",3+4)

dv> k = read_lines("fpf.txt")
Text Buffer with 1 lines of text
    1: The value of 3+4 is 7

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools