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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b0f7b966bf5d7b74 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: File rename in Ada95 Reply-To: no to spamers (No@email.given.org) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Thu, 30 Oct 2008 17:14:17 GMT NNTP-Posting-Host: 12.64.108.32 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1225386857 12.64.108.32 (Thu, 30 Oct 2008 17:14:17 GMT) NNTP-Posting-Date: Thu, 30 Oct 2008 17:14:17 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:8262 Date: 2008-10-30T17:14:17+00:00 List-Id: I would say to load the file in memory if memory is available, just in case the program cashes. Plus it save, speed of accessing the data file. Memory it cheap where Time is not. Or it is better to create a subroutine to copy the old file to a temporary new file then use that temporary file in your program. That way, the orginal file still exist, just in case your program crashes. The lack of the delete and rename function was a part of the DOD requirement for data safety and security. And since Ada specification are no long under that strict requirement the delete and rename function have been added. In , Maciej Sobczak writes: >Hi, > >What is the recommended way to rename a file in Ada95? >Ada.Directories is not invented yet and GNAT.Directory_Operations is >not smart enough. >Target platform: Linux. > >-- >Maciej Sobczak * www.msobczak.com * www.inspirel.com > >Database Access Library for Ada: www.inspirel.com/soci-ada