comp.lang.ada
 help / color / mirror / Atom feed
From: Peter Hermann <ica2ph@alpha1.csv.ica.uni-stuttgart.de>
Subject: text_io append WinNT-oa+gnat
Date: 1998/09/30
Date: 1998-09-30T00:00:00+00:00	[thread overview]
Message-ID: <6uthfn$him$1@infosun2.rus.uni-stuttgart.de> (raw)


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)




                 reply	other threads:[~1998-09-30  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox