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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1bf2ae8ad10a44cd,start X-Google-Attributes: gid103376,public From: Peter Hermann Subject: text_io append WinNT-oa+gnat Date: 1998/09/30 Message-ID: <6uthfn$him$1@infosun2.rus.uni-stuttgart.de>#1/1 X-Deja-AN: 396356440 Organization: Comp.Center (RUS), U of Stuttgart, FRG Keywords: text_io append dos unix User-Agent: tin/pre-1.4-980117 (UNIX) (OSF1/V2.0 (alpha)) Newsgroups: comp.lang.ada Date: 1998-09-30T00:00:00+00:00 List-Id: A small piece of experience given to AdaTeamers, who work with portable software on different platforms: The following holds for both ObjectAda7.1.1(Aonix) and GNAT3.10p under WindowsNT4: I have a small application, which (text_io.open) opens an existing text file in append-mode. This works fine, when the data file has an origin of DOS or Windows. If not, i.e. when the data file comes from an unix-system, there are problems with an additional empty line near the appended line. Result: Unix text data files need a conversion to dos-format when APPEND is used. I did this conversion by means of textpad--tools--Convert_to_DOS, but I guess there must be many other tools to convert from unix to dos file format, aren't there? A simple edit step in the ms-dos-editor and a forced save does this too. -- Peter Hermann Tel+49-711-685-3611 Fax3758 ica2ph@csv.ica.uni-stuttgart.de Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen http://www.csv.ica.uni-stuttgart.de/homes/ph/ Team Ada: "C'mon people let the world begin" (Paul McCartney)