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

Jonas Maebe jonas at zeus.rug.ac.be
Fri Dec 6 11:07:12 CET 2002

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.


More information about the fpc-pascal mailing list