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,STOX_REPLY_TYPE, STOX_REPLY_TYPE_WITHOUT_QUOTES,XPRIO autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!nzpost2.xs4all.net!news.kpn.nl!not-for-mail From: "ldries46" Newsgroups: comp.lang.ada Subject: Operating System differences and Ada OS independent programming Date: Mon, 21 Mar 2016 14:18:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 Message-ID: <56eff4a4$0$4238$e4fe514c@news.kpn.nl> NNTP-Posting-Host: 77.168.179.107 X-Trace: 1458566308 dreader32.news.xs4all.nl 4238 77.168.179.107:59347 X-Complaints-To: abuse@kpn.nl Xref: news.eternal-september.org comp.lang.ada:29835 Date: 2016-03-21T14:18:03+01:00 List-Id: As Ada is a computer langauge that is by definition OS independent. The following question coup: How to work with filename differences on different platforms, for instance creating a program that has to run on Linux and Windows both For example a file can be in Windows on: ..\..\name and on Linux on ../../name or in windows on C:\directory\* while in Linux on dev1/directory/* Is there a general form which can be used or is there a routine which can be used to determine which operating the program is on. Maybe there is some kind of pragma defined which can be used the same way as in C/C++ compiler diectives. L. Dries