home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / ada / 2472 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.2 KB  |  25 lines

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