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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-12 12:41:00 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: John_J_Cupak@raytheon.com (John Cupak) Newsgroups: comp.lang.ada Subject: Resize / Truncate Direct_IO file Date: 12 Mar 2002 12:40:59 -0800 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 199.46.198.232 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1015965660 5365 127.0.0.1 (12 Mar 2002 20:41:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 12 Mar 2002 20:41:00 GMT Xref: archiver1.google.com comp.lang.ada:21132 Date: 2002-03-12T20:41:00+00:00 List-Id: A co-worker asked me if it is possible to truncate or resize an Ada Direct_IO file, and after scouring the 'net and past postings I couldn't provide an answer for her. 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? John Cupak