2,732
edits
Red Leader (talk | contribs) |
Red Leader (talk | contribs) |
||
Line 243: | Line 243: | ||
{{Nasal doc | {{Nasal doc | ||
|syntax = io.readfile(file); | |syntax = io.readfile(file); | ||
|text = Reads and returns a single line from the file, advancing the position indicator. Accepts different {{wikipedia|newline}} types, including LF, CR, and CR+LF. Does not include the EOL character(s) in the returned string. End of file or an error is signaled by returning <code>'''nil'''</code>. | |text = Reads and returns a single line from the file, advancing the position indicator. Accepts different {{wikipedia|newline}} types, including {{abbr|LF|line feed}}, {{abbr|CR|carriage return}}, and CR+LF. Does not include the EOL character(s) in the returned string. End of file or an error is signaled by returning <code>'''nil'''</code>. | ||
|param1 = file | |param1 = file | ||
|param1text = File object as returned by {{func link|open}}. | |param1text = File object as returned by {{func link|open}}. |