Anonymous user
Read a file line by line: Difference between revisions
→{{header|C}}: +{{libheader|BSD}} for fgetln() solution.
(→{{header|C}}: +{{libheader|BSD}} for fgetln() solution.) |
|||
Line 98:
The next example uses [http://www.openbsd.org/cgi-bin/man.cgi?query=fgetln&apropos=0&sektion=3&manpath=OpenBSD+Current&arch=i386&format=html ''fgetln()''] and [http://www.openbsd.org/cgi-bin/man.cgi?query=err&apropos=0&sektion=3&manpath=OpenBSD+Current&arch=i386&format=html ''err()''] from [[BSD]], but will not work with most other systems.
{{libheader|BSD}}
{{works with|OpenBSD|4.8}}
Line 267 ⟶ 268:
return 0;
}</lang>
=={{header|C sharp|C#}}==
'File.ReadLines' reads the lines of a file which could easily bee stepped through.
|