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.

Parameters:

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.

Example:

var filehandle = file_open_write ("myfile.txt");
file_str_write(filehandle,"this,is,");
file_str_write(filehandle,"a,Test");
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