Jump to content

Read a file line by line: Difference between revisions

(→‎{{header|C}}: more specific error messages)
Line 369:
}</lang>
 
=={{header|C sharp|C#}}==
'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")
506

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.