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,2d7ec12dd7db366 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-28 10:45:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!134.222.94.5!npeer.kpnqwest.net!news.edf.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: How to rename a file? Date: 28 Sep 2001 19:34:24 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Sender: obry@PASCAL Message-ID: References: NNTP-Posting-Host: 163.107.131.27 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: clnews.edf.fr 1001698556 14623 163.107.131.27 (28 Sep 2001 17:35:56 GMT) X-Complaints-To: newsadm@news.edf.fr NNTP-Posting-Date: 28 Sep 2001 17:35:56 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.106 Xref: archiver1.google.com comp.lang.ada:13482 Date: 2001-09-28T17:35:56+00:00 List-Id: "David Botton" writes: > On Win32 if you wish to be cross compiler (this also demonstrates why thin > bindings are mostly a waste of time for Ada): > > First the ugly method: > (code removed) > > Now the cool method: > (code removed) Now the really cool method :) POSIX.Files.Rename ("myoldfile", "whateveristhenewname"); All the ugly binding to the OS has been done by the POSIX bindings developers... don't waste your time ! Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| --| "The best way to travel is by means of imagination"