Anonymous user
Read a specific line from a file: Difference between revisions
→{{header|Mathematica}}
(→{{header|AWK}}: read specific line) |
|||
Line 422:
print line7$</lang>
=={{header|Mathematica}}==
<lang Mathematica> If[# != EndOfFile , Print[#]]& @ ReadList["file", String, 7] </lang>
=={{header|MATLAB}} / {{header|Octave}}==
Line 445 ⟶ 448:
printf('line %i: %s\n',eln,line);
</lang>
<nowiki>Insert non-formatted text here</nowiki>
=={{header|OCaml}}==
|