Read a specific line from a file: Difference between revisions
Content deleted Content added
m →{{header|Wren}}: Changed to Wren S/H |
PascalABC.NET |
||
Line 1,565:
while (<>) { $. == $n and print, exit }
die "file too short\n";</syntaxhighlight>
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
begin
var linenum := 4;
ReadLines('_a.pas').Skip(linenum-1).First.Print;
end.
</syntaxhighlight>
=={{header|Phix}}==
|