From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7664393dc2509d81 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-12 14:56:23 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: Resize / Truncate Direct_IO file X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C8E8411.B05385BB@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: Mime-Version: 1.0 Date: Tue, 12 Mar 2002 22:41:21 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:21137 Date: 2002-03-12T22:41:21+00:00 List-Id: John Cupak wrote: > > So, here goes: Suppose I have an instantiated Direct_IO file with 10 > records. > I set the index to 5, and realize I don't need records 6-10. How do I > truncate or resize the file, short of deleting records 6-10? I don't > see an End_Of_File procedure for Direct_IO. Am I missing something? No. A Direct_IO file can get bigger, but not smaller. Within the confines of Direct_IO, all you can do is create a new file with only the desired data. -- Jeffrey Carter