file_chr_read (var handle, STRING*)

Reads characters from the file with the given handle into the given string, until the end of the string is reached. The file must be open for reading.

Parameters:

handle File handle.
STRING* String to be filled from the file.

Example:

STRING test_str = "12"; // 2-character-string
var fhandle;
...
fhandle = file_open_read ("test.txt"); // test.txt contains "This,is,a,test"
file_chr_read(fhandle, test_str); // test_str contains now "Th"
file_close (fhandle);

See also:

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

► latest version online