file_var_read (var handle)

Returns the number that was written into the file with the given handle, and proceeds to the next position within the file. The file must be open for reading. If there are no further numbers, 0 is returned.

Parameters:

handle - file handle.

Returns:

Number representation of the string at the current reading position, or 0 at the end of the file.

Example:

var filehandle = file_open_read("myfile.txt"); // file contains: "123456.789 1.414"
var temp = file_var_read(filehandle); // now temp == 123456.789
temp = file_var_read(filehandle); // now temp == 1.414
file_close(filehandle);

See also:

file_open_read, file_open_write, file_open_append, file_close, file_var_write, file_str_write, file_str_read, file_chr_read, file_asc_write, file_asc_read ► latest version online