Jump to content

Read a specific line from a file: Difference between revisions

Added Nimrod
(Added an Algol 68 sample)
(Added Nimrod)
Line 785:
return \(1 == 1)
</lang>
 
=={{header|Nimrod}}==
 
<lang nimrod>var
line: TaintedString
f = open("test.txt", fmRead)
 
for x in 0 .. 6:
try:
line = readLine f
except EIO:
echo "Not 7 lines in file"</lang>
 
=={{header|OCaml}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.