Method Stdio.read_file()
- Method read_file
stringread_file(stringfilename)
stringread_file(stringfilename,intstart,intlen)- Description
Read
lenlines from a regular filefilenameafter skippingstartlines and return those lines as a string. If bothstartandlenare omitted the whole file is read.- Throws
Throws an error on any I/O error except when the file doesn't exist.
- Returns
Returns
0(zero) if the file doesn't exist or ifstartis beyond the end of it.Returns a string with the requested data otherwise.
- See also