home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!ubc-cs!uw-beaver!simonson
- From: simonson@cs.washington.edu (Kevin Simonson)
- Subject: Reducing Size of Files with direct_io
- Message-ID: <1992Aug28.191059.7978@beaver.cs.washington.edu>
- Summary: How do you decrease the size of a file?
- Keywords: direct_io reducing size
- Sender: news@beaver.cs.washington.edu (USENET News System)
- Organization: Computer Science & Engineering, U. of Washington, Seattle
- Date: Fri, 28 Aug 92 19:10:59 GMT
- Lines: 12
-
- With package "direct_io" (dealt with on pages 14-7 to 14-9 of the
- LRM), any element of a file can be modified in any way, additional elements
- can be added onto the end of the file, and in addition to this the file can
- even be deleted.
-
- It strikes me as being a very flexible way to handle a file, but
- there is one feature that it seems to lack. The size of the file can be
- increased by writing past the end, but I can't find any way to DECREASE
- the size of the file, without outright deleting it. Does anyone know how
- such a thing could be accomplished? Thanks in advance.
-
- ---Kevin Simonson
-