Command line
From: Andreas (andreasv_at_telia.com)
Date: 04/21/04
- Previous message: Georg Bauhaus: "Re: Gwindows_Extended"
- Next in thread: Stephen Leake: "Re: Command line"
- Reply: Stephen Leake: "Re: Command line"
- Reply: Preben Randhol: "Re: Command line"
- Reply: Jeff C,: "Re: Command line"
- Maybe reply: Andreas: "Re: Command line"
- Reply: Richard Riehle: "Re: Command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 20 Apr 2004 23:39:03 GMT
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
- Previous message: Georg Bauhaus: "Re: Gwindows_Extended"
- Next in thread: Stephen Leake: "Re: Command line"
- Reply: Stephen Leake: "Re: Command line"
- Reply: Preben Randhol: "Re: Command line"
- Reply: Jeff C,: "Re: Command line"
- Maybe reply: Andreas: "Re: Command line"
- Reply: Richard Riehle: "Re: Command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|