Read a file line by line: Difference between revisions
m
→{{header|J}}
m (→{{header|J}}) |
|||
Line 470:
=={{header|J}}==
J currently discourages this "read just one line" approach. In addition to the arbitrary character of lines, there are issues of problem size and scope (what
This implementation looks for lines separated by ascii character 10. Lines returned here do not include the line separater character. Files with no line-separating character at the end are treated as well formed -- if the last character of the file is the line separator that means that you have an empty line at the end of the file.
|