comp.lang.ada
 help / color / mirror / Atom feed
* text_io append WinNT-oa+gnat
@ 1998-09-30  0:00 Peter Hermann
  0 siblings, 0 replies; only message in thread
From: Peter Hermann @ 1998-09-30  0:00 UTC (permalink / 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)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-09-30  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-30  0:00 text_io append WinNT-oa+gnat Peter Hermann

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