file_str_write (var handle, STRING* string)

file_str_writeto (var handle, STRING* string, var length)

Writes the given string or buffer into the file with the given handle. The file must be open for writing or appending.


handle File handle
string STRING* or char*, content to be written into the file.
length A7.79 Number of characters to be written, or 0 for writing until the end of the string.


var filehandle = file_open_write ("myfile.txt");
file_close (filehandle);  

See also:

file_open, file_close, file_var_write, file_var_read, file_str_read, file_chr_read, file_asc_write, file_asc_read

► latest version online