Go to the first, previous, next, last section, table of contents.


open_file, close_file, get_line

open_file("filename")
:: Opens filename for reading.
close_file(num)
:: Closes the file indicated by a descriptor num.
get_line(num)
:: Reads a line from the file indicated by a descriptor num.
return
open_file() : integer (fild id); close_file() : 1; get_line() : string
filename
file (path) name
num
non-negative integer (file descriptor)
[185] Id = open_file("test");
0
[186] get_line(Id);
12345

[187] get_line(Id);
67890

[188] get_line(Id);
0
[189] type(@@);
0
References
section eval_str, section str_len, str_chr, sub_str.


Go to the first, previous, next, last section, table of contents.