Xref: utzoo comp.lang.c:33521 comp.os.msdos.programmer:1862 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!decuac!shlump.nac.dec.com!news.crl.dec.com!decvax.dec.com!zinn!siia!drd From: drd@siia.mv.com (David Dick) Newsgroups: comp.lang.c,comp.os.msdos.programmer Subject: Re: How do I SHORTEN a file without rewriting it? Keywords: truncation Message-ID: <1990Nov7.163831.9643@siia.mv.com> Date: 7 Nov 90 16:38:31 GMT References: <1162@bilver.UUCP> <747@csource.oz.au> Organization: Software Innovations, Inc. Lines: 12 In <747@csource.oz.au> david@csource.oz.au (david nugent) writes: >In <1162@bilver.UUCP> alex@bilver.UUCP (Alex Matulich) writes: >>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? The >>file I have is too big to read into memory and write back out again, and >>there is not enough room on the disk to write out a temporary file. >Write zero bytes at that position. Of course, this won't work on a UNIX system.