DADiSP Worksheet Functions > Function Categories > File Manipulation > FPRINTF
Performs formatted output to a file.
FPRINTF("filename", "control", arg1, arg2, ..., argN)
"filename" |
- |
A string. Name of output file. The file must have been previously opened with FOPEN. |
"control" |
- |
A string. Format control string. Conforms to the C/C++ language SPRINTF specification. |
argN |
- |
Number or string to format. See SPRINTF for details. |
1 if successful, else 0.
writeval("test.txt", gsin(100,.01)+1)
The file "test.txt" contains the following text:
Xoffset : 0
Deltax : 0.01
Length : 100
Mean : 1
Sum : 100
See SPRINTF for details on formatting syntax and capabilities.