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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6a926cda2c14f4d,start X-Google-Attributes: gid103376,public From: orion@cs.montana.edu (Jeremy D. Mullin) Subject: nextc, getc and ungetc Date: 1999/02/03 Message-ID: <798dvo$loq$1@netra.msu.montana.edu>#1/1 X-Deja-AN: 440025036 X-Complaints-To: usenet@news.montana.edu X-Trace: netra.msu.montana.edu 918010680 22298 153.90.192.1 (3 Feb 1999 02:58:00 GMT) Organization: Dept of Computer Science, Montana State University, Bozeman, MT NNTP-Posting-Date: 3 Feb 1999 02:58:00 GMT Newsgroups: comp.lang.ada Date: 1999-02-03T02:58:00+00:00 List-Id: I am writing a scanner in Ada and was wondering if there was a "peek" function I could use to get a char from the input file but not move the file pointer. I found definitions for nextc, getc and ungetc in the text_io package but they are private declarations. Does anyone know of the package/methods I should be using or of any resources on the web that might help me? TIA, J.D. --