- Aide Scilab
- Entrées/Sorties [fichiers]
- chdir
- fullfile
- getlongpathname
- getshortpathname
- mkdir
- pwd
- rmdir
- basename
- copyfile
- createdir
- deletefile
- dir
- dirname
- dispfiles
- fileext
- fileinfo
- fileparts
- filesep
- findfiles
- fprintf
- fprintfMat
- fscanf
- fscanfMat
- fullpath
- get_absolute_file_path
- getdrives
- getrelativefilename
- %io
- isdir
- isfile
- listfiles
- listvarinfile
- ls
- maxfiles
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mscanf
- mget
- mgetl
- mgetstr
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- newest
- pathconvert
- pathsep
- removedir
- save_format
- scanf
- scanf_conversion
- sscanf
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
fprintf
Emulator of C language fprintf function
Calling Sequence
fprintf(file,format,value_1,..,value_n)
Arguments
- format
a Scilab string. Specifies a character string combining literal characters with conversion specifications.
- value_i
Specifies the data to be converted according to the format parameter.
- str
column vector of character strings
- file
a Scilab string specifying a file name or a logical unit number (see
file
)Note that is file=0, the message will be display on standard error stream (stderr).
Description
Obsolete function, use preferabily the mfprintf function
which is much more compatible with the C fprintf
functionalities.
The fprintf
function converts, formats, and writes
its value
parameters, under control of the format
parameter, to the file specified by its file
parameter.
The format
parameter is a character string that contains two
types of objects:
- Literal characters
which are copied to the output stream.
- Conversion specifications
each of which causes zero or more items to be fetched from the
value
parameter list. see printf_conversion for details
If any value
s remain after the entire format
has been
processed, they are ignored.
Examples
See Also
- mfprintf — converts, formats, and writes data to a file
- string — conversion en chaîne de caractères
- print — prints variables in a file
- write — write in a formatted file
- format — number printing and display format
- disp — displays variables
- file — file management
- printf — Emulator of C language printf function
- sprintf — Emulator of C language sprintf function
- printf_conversion — printf, sprintf, fprintf conversion specifications
<< findfiles | Entrées/Sorties [fichiers] | fprintfMat >> |