How do I SHORTEN a file without rewriting it?
John Passaniti
John.Passaniti at f201.n260.z1.FIDONET.ORG
Tue Oct 30 06:42:34 AEST 1990
> As long as we're on the subject, does anyone have a
> neat-o method for getting rid of records from the
> _beginning_ of a file? (Standard preferred,
> but if there's an MSDOS way, I'll accept it....)
If you are interested in a SLEAZY way to do this
quickly, and if your records are multiples of the size of
your minimum allocation units (clusters in MS-DOS), then you
can modify the directory entry of the file to point to
whatever record you want to start at. Change the file size
as necessary, and free the unused clusters at the beginning
of the file.
I said it was sleazy...
--
*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*
John Passaniti - via FidoNet node 1:260/230
UUCP: ...!rochester!ur-valhalla!rochgte!201!John.Passaniti
INTERNET: John.Passaniti at f201.n260.z1.FIDONET.ORG
*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*
More information about the Comp.lang.c
mailing list