fwrite


writes a file following a similar syntaxe as C language.

fwrite

fwrite(f,"ccc")

Writes string ccc in the file opened by: f=fopen("nnn w").

fwrite(f,x1,x2,...,xn)

Writes n floats xi in the file opened by: f=fopen("nnn w").
Options:
format("float"): floats (default).
format("long"): longs.
Example:
see fopen.

See also

fopen
fclose
getline
getword
fread