comp.lang.ada
 help / color / mirror / Atom feed
* Command line
@ 2004-04-20 23:39 Andreas
  2004-04-21  0:32 ` Stephen Leake
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Andreas @ 2004-04-20 23:39 UTC (permalink / raw)


Hello

In a part of a program i'm writing, i need to read each row in a file and
check if the format is what i want it to be. I use a procedure (that takes
no arguments) to check if the format is OK. This procedure shall raise an
error if the format is bad, but will not handle the error; the procedure
that calls this procedure is supposed to do that.
I need to write the file name in the command line when i start my program.

To clear up the difficulties:

First i start the program by typing

myprog < data.txt

Then the main procedure runs, and calls the format check procedure, once for
each row in the file. If the format check procedure raised an error; handle
it in the main function (once error check for each call to the format check
procedure).

I've got a 500+ pages ADA programming book, but it doesn't help. I really
can't find what i'm looking for there.

Thanks in advance,

/Andreas





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

end of thread, other threads:[~2004-04-29 13:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-20 23:39 Command line Andreas
2004-04-21  0:32 ` Stephen Leake
2004-04-21  8:53 ` Preben Randhol
2004-04-21 11:19 ` Jeff C,
2004-04-21 14:07   ` Preben Randhol
2004-04-22  2:00 ` Frank Beard
2004-04-26 16:08   ` Andreas
2004-04-26 17:19     ` Marius Amado Alves
2004-04-26 17:05       ` Andreas
2004-04-26 19:56         ` Marius Amado Alves
2004-04-26 19:52           ` Andreas
2004-04-29 13:40 ` Richard  Riehle

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