@SAFEREAD
— Reads text
from a file, mapping any dangerous characters to safe alternatives.
Syntax:
%@SAFEREAD[
handle,
length]
handle: | a file handle opened with @FILEOPEN |
length: | the number of bytes to read; if not specified, one line is read |
This function calls TCC’s built-in @FILEREAD
function and
massages whatever text it returns. See the Take Command documentation for
more information on @FILEREAD
.
If you attempt to read past the end of the file, @SAFEREAD
will return the value **EOF**
.