Nasal library/io: Difference between revisions

Jump to navigation Jump to search
m (Fix typos)
Line 242: Line 242:
=== readln() ===
=== readln() ===
{{Nasal doc
{{Nasal doc
|syntax = io.readfile(file);
|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

Navigation menu