Path: utzoo!attcan!uunet!decwrl!wuarchive!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!ee.rochester.edu!rochgte!f201.n260.z1.FIDONET.ORG!John.Passaniti From: John.Passaniti@f201.n260.z1.FIDONET.ORG (John Passaniti) Newsgroups: comp.lang.c Subject: Re: How do I SHORTEN a file without rewriting it? Message-ID: <180.272D7A9F@rochgte.FIDONET.ORG> Date: 29 Oct 90 19:42:34 GMT Sender: ufgate@rochgte.FIDONET.ORG (newsout1.26) Organization: FidoNet node 1:260/201 - Age Of Chance, Rochester NY Lines: 23 > 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@f201.n260.z1.FIDONET.ORG *%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*