From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.5 required=3.0 tests=BAYES_50,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:620a:901:: with SMTP id v1mr6396188qkv.331.1612565425245; Fri, 05 Feb 2021 14:50:25 -0800 (PST) X-Received: by 2002:a25:ada2:: with SMTP id z34mr9935693ybi.165.1612565424950; Fri, 05 Feb 2021 14:50:24 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 5 Feb 2021 14:50:24 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=85.240.146.108; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.240.146.108 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: questions on input/output From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Fri, 05 Feb 2021 22:50:25 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61289 List-Id: I can't understand how input/output works. 1) on text files - not keyboard input - what's the difference between get_immediate and get ? 2) what means "consumming" characters, if indices don't change ? 3) can set_col be used or not, to go back in a line in an IN_FILE file ? I get a good "END_ERROR" when I try that. what's the trick then ? I did read the rm or whatnot, or other resources, but language doesn't help me... or I guess I do things the wrong way. I need: to read a character, until some marker, then go back (set_col(stored_position)) and read again but store it like Get(variable, FILE); then go past the marker (set_col(FILE,col(file)+1)).