[fpc-pascal]How to delete records from a file

A.J. Venter ajventer at direqlearn.org
Fri Dec 6 12:46:10 CET 2002


On Friday 06 December 2002 12:07 pm, Jonas Maebe wrote:
> On vrijdag, dec 6, 2002, at 07:57 Europe/Brussels, A.J. Venter wrote:
> > Now lets say FoS contains three entries and I wish to remove the first
> > one.
> > A simple shift up loop will technically remove it,
> > entry1 := entry2;
> > entry2 := entry3;
> >
> > But how do I then get rid of the duplicate entry two ?
>
> Use truncate() to cut off the file.
>
>
> Jonas
Thanks, I knew it was a simple command.

Ciao
A.J.
-- 
Programming  n.
First defined by Shakespear as: "Bloody instructions which, being taught 
return to plague their inventor" (Macbeth, Act 1, Scene 7)





More information about the fpc-pascal mailing list