From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,74b013eedc5cbd6d,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-20 16:39:04 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news-stoc.telia.net!news-stoa.telia.net!telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: "Andreas" Newsgroups: comp.lang.ada Subject: Command line X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: Date: Tue, 20 Apr 2004 23:39:03 GMT NNTP-Posting-Host: 81.224.164.169 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1082504343 81.224.164.169 (Wed, 21 Apr 2004 01:39:03 CEST) NNTP-Posting-Date: Wed, 21 Apr 2004 01:39:03 CEST Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:7369 Date: 2004-04-20T23:39:03+00:00 List-Id: 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