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,7d05ebe305483c33,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-24 06:00:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!demon!diablo.theplanet.net!news.theplanet.net!not-for-mail From: "Jasbinder S Uppal" Newsgroups: comp.lang.ada Subject: Newbie question Date: Mon, 24 Dec 2001 13:52:32 -0000 Message-ID: NNTP-Posting-Host: modem-1991.porcupine.dialup.pol.co.uk X-Trace: news8.svr.pol.co.uk 1009202403 540 217.134.199.199 (24 Dec 2001 14:00:03 GMT) NNTP-Posting-Date: 24 Dec 2001 14:00:03 GMT X-Complaints-To: abuse@theplanet.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:18276 Date: 2001-12-24T14:00:03+00:00 List-Id: Hi, I've been subscribed to this news group for a long time (ok, when I first started using Ada, about 2 months ago!), but this is the first time I've actually had problems with the language and well, I was wondering if you guys can help me. I've got this assignment for university that I have to do, and I am having problems with the first bit (Not a good sign, is it....). I've got a data file, which contains a line of data for a vehicle, and on the line, it gives a place name, a registration number, and the time that the car goes onto a motorway. A typical line is as follows.... Barnsley A123 22 15 40 .... .... Where Barnsley is the place, A123 is the Registration number, and 22 15 40 is the time (22:15:40). I've managed to get the Place name (using characters) and the registration number (using Strings), and putting it into a record, but I am unsure as to what to use for the time. I could (I think) use characters, but I need to manipulate the times later on in the program (which could be done by having the time as an integer), but because there are blanks in between the numbers, I am unsure as to how I can do this. Help me please.... I appreciate any help given. Thanks. J