Read a file line by line: Difference between revisions
→{{header|C sharp|C#}}
(→{{header|C}}: more specific error messages) |
|||
Line 369:
}</lang>
=={{header|C sharp
'File.ReadLines' reads the lines of a file which could easily bee stepped through.
<lang csharp>foreach (string readLine in File.ReadLines("FileName")
Line 408:
}
}</lang>
=={{header|Common Lisp}}==
<lang lisp>(with-open-file (input "file.txt")
|