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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.218.70 with SMTP id pe6mr147582pac.33.1393949848748; Tue, 04 Mar 2014 08:17:28 -0800 (PST) X-Received: by 10.50.111.11 with SMTP id ie11mr66578igb.2.1393949848617; Tue, 04 Mar 2014 08:17:28 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!rt.uk.eu.org!news.glorb.com!ur14no985023igb.0!news-out.google.com!h8ni13igy.0!nntp.google.com!l13no1484980iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 4 Mar 2014 08:17:28 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Reading data from file From: adambeneschan@gmail.com Injection-Date: Tue, 04 Mar 2014 16:17:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:18776 Date: 2014-03-04T08:17:28-08:00 List-Id: On Tuesday, March 4, 2014 1:46:29 AM UTC-8, Laurent wrote: > Hi >=20 > Still trying to solve an exercise. I am supposed to develop a procedure w= hich reads the data from a txt file. My first try fails because I get an er= ror on reading an enumeration. Unfortunately I have no idea why.=20 >=20 > Txt file:=20 >=20 > ID: 1234 > Name: test > Gender: male <=3D=3D reading fails with atio_enumio error > Numdepend: 1 > Salary: 200.0 > StartDate: 12 feb 2013 >=20 > Writing this from my smartphone so I don't have a lot info available. >=20 > The EOL character: do I have to take care of those or are they automatica= lly skipped by atio/ aitio. Get? Enumeration_IO will skip any whitespace (including line terminators) at the= current position *before* it tries to read the enumeration. However, afte= r the enumeration is read, the next character (which could be a line termin= ator, other whitespace, or a non-identifier character) is left in the input= stream and is not skipped. But without any code or an accurate exception message, I don't think it's p= ossible to provide any additional help. -- Adam