file_asc_read (handle)

Reads a byte (0..255) out of the file with the given handle, and proceeds to the next byte within the file.

Parameters:

handle - File handle.

Returns:

var - Numerical value of the character.

Example:

var fhandle;
...
fhandle = file_open_read ("test.txt"); // test.txt contains "Aa"
temp = file_asc_read (fhandle); // temp is now 65
temp = file_asc_read (fhandle); // temp is now 97.
file_close (fhandle); 

See also:

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