comp.lang.ada
 help / color / mirror / Atom feed
* Text IO for files not using the standard line termination for the OS
@ 2018-11-18  2:01 jdgressett
  2018-11-18  3:44 ` Shark8
  2018-11-18  4:40 ` Keith Thompson
  0 siblings, 2 replies; 6+ messages in thread
From: jdgressett @ 2018-11-18  2:01 UTC (permalink / raw)


I use Ada 2012 to write Windows programs; my usual compiler is 32-bit TDM-gcc which implements the gcc-5.1.0 version of the Ada compiler.

My problem is a simple one: i need to produce a program which reads lines from a text file; if a line meets a requirement, it is written to an output file; if it does not meet the requirement it is not written to the output file.

The annoyance that I must deal with is the fact that the files are not Windows text files, which use the <cr><lf> convention to terminate text lines.

The files use a single <cr> as the line terminator.

Is there a way to get Ada.Text_IO to use a line terminator that is not the default for the operation system on which the program runs?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-18 23:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-18  2:01 Text IO for files not using the standard line termination for the OS jdgressett
2018-11-18  3:44 ` Shark8
2018-11-18  9:26   ` Jeffrey R. Carter
2018-11-18 23:41     ` jdgressett
2018-11-18  4:40 ` Keith Thompson
2018-11-18 10:10   ` Simon Wright

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