🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2802

Re: How do I SHORTEN a file without rewriting it?

#2802
From: Doug Stevens
Date: Thu, 25 Oct 1990 19:15
5 lines
731 bytes
>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.
Technical Details
Message-ID: <6108@videovax.tv.tek.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!videovax!dougs
References: <1162@bilver.UUCP> <1990Oct24.152300.12847@esegue.segue.boston.ma.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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