2,732
edits
Red Leader (talk | contribs) m (Fix typos) |
Red Leader (talk | contribs) (→readln(): Typo) |
||
Line 242: | Line 242: | ||
=== readln() === | === readln() === | ||
{{Nasal doc | {{Nasal doc | ||
|syntax = io. | |syntax = io.readln(file); | ||
|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>. | |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 |