comp.lang.ada
 help / color / mirror / Atom feed
From: "Andreas" <andreasv@telia.com>
Subject: Command line
Date: Tue, 20 Apr 2004 23:39:03 GMT
Date: 2004-04-20T23:39:03+00:00	[thread overview]
Message-ID: <rwihc.56765$mU6.234010@newsb.telia.net> (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





             reply	other threads:[~2004-04-20 23:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-20 23:39 Andreas [this message]
2004-04-21  0:32 ` Command line 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
replies disabled

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