Cold Help System: Programming: ColdC Reference Manual: Functions: File: fwrite()


INTEGER fwrite(STRING|BUFFER info)

Write to an existing file bound to this object. The argument is either a buffer (if it is a binary file), or a string (if it is a text file). The return value is an integer representing an offset value of characters which were not written out (due to an error). In normal operating conditions the return value will be zero.

Using fwrite() with strings will always terminate the string with a newline character (ASCII 10).


dblog() | execute() | fchmod() | fclose() | feof() | fflush() | file() | files() | fmkdir() | fopen() | fread() | fremove() | frename() | frmdir() | fseek() | fstat() | fwrite()


the Cold Dark