native read_file(const file, line, text, len, &txtlen = 0);
Path to open
Index of the line, starting to 0
String buffer to hold line read
Maximum size of string buffer
Number of characters written to the buffer
- Reads line from file.
This native is expensive. Consider the use of new file natives (fopen(), fgets(), etc.) if purpose is to read several lines of a file.
- Returns index of next line, otherwise 0 when end of file is reached