Read a specific line from a file: Difference between revisions

Content deleted Content added
PureFox (talk | contribs)
m →‎{{header|Wren}}: Changed to Wren S/H
Miks1965 (talk | contribs)
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}}==