Original Author Paul Laughton, 2011
Page 111
De Re BASIC!
If you have marked a position in the file, you cannot set a position before the mark. You will not be
notified that the position is different from what you requested. See Text.position.mark for more
information.
Text.position.mark {{<file_table_nexp>}{, <marklimit_nexp>}}
Marks the current line of the file, and sets the mark limit to <marklimit_nexp> bytes.
Both parameters are optional. If the file table index <file_table_nexp> is omitted, the default file is the
last file opened; you must ensure that the last file opened was a Text file opened for reading. If the mark
limit <marklimit_exp> is omitted, the default value is the file's current mark limit.
Please read Working with Files
Mark and Mark Limit, above.
GrabURL <result_svar>, <url_sexp>{, <timeout_nexp>}
Copies the entire source text of the URL <url_sexp> to the string variable <result_svar>. The URL may
specify an Internet resource or a local file. If the URL does not exist or the data cannot be read, the
<result_svar> is set to the empty string, "", and you can use the GETERROR$() function to get more
information.
If the optional <timeout_nexp> parameter is non-zero, it specifies a timeout in milliseconds. This is
meaningful only if the URL names a resource on a remote host. If the timeout time elapses and host
does not connect or does not return any data, GETERROR$ reports a socket timeout.
If the named resource is empty, the <result_svar> is empty, "", and GETERROR$() returns "No error".
The Split command can be used to split the <result_svar> into an array of lines.
GrabFile <result_svar>, <path_sexp>{, <unicode_flag_lexp>}
Copies the entire contents of the file at <path_sexp> to the string variable <result_svar>. By default,
GrabFile assumes that the file contains binary bytes or ASCII characters. If the optional
<unicode_flag_lexp> evaluates to true (a non-zero numeric value), GrabFile can read Unicode text.
If the file does not exist or cannot be opened, the <result_svar> is set to the empty string, "", and you
can use the GETERROR$() function to get more information. If the file is empty, the <result_svar> is an
empty string, "", but GETERROR$() returns "No error".
For text files, either ASCII or Unicode, the Split command can be used to split the <result_svar> into an
array of lines. GrabFile can also be used grab the contents of a text file for direct use with Text.input:
GRABFILE text$, "MyJournal.txt"
TEXT.INPUT EditedText$, text$