file_append()

Appends data to an open file.

Syntax

file_append({file_handle}, {data}...)

Parameters

Parameter Type Description Comment
file_handle Number Handle of the open file to append to.
data String Data to append to the file. Can be multiple strings or numbers. Optional additional data

Return Value

Examples

Open a file, append data to it

hnd = file_open("log.txt");
file_append(hnd, "New data to append"); 

Append multiple pieces of data

file_append(hnd, "Line 1\n", "Line 2", 100); 

See also

file_delete

file_open
file_close

file_read

file_append
file_flush