Path: utzoo!attcan!uunet!zephyr.ens.tek.com!videovax!dougs From: dougs@videovax.tv.tek.com (Doug Stevens) Newsgroups: comp.os.msdos.programmer Subject: Re: How do I SHORTEN a file without rewriting it? Summary: Try chsize() Keywords: truncation Message-ID: <6108@videovax.tv.tek.com> Date: 25 Oct 90 19:15:37 GMT References: <1162@bilver.UUCP> <1990Oct24.152300.12847@esegue.segue.boston.ma.us> Organization: Tektronix TV Measurement Systems, Beaverton OR Lines: 5 >Is there a way to shorten a file, that is, chop some data off the end of >it, so that it doesn't consume as much physical space on the disk? There's a function called chsize(int handle, long size) in the Turbo-C library for exactly this purpose.