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 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: nextc, getc and ungetc Date: 1999/02/03 Message-ID: <799pmk$gcm$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 440193509 References: <798dvo$loq$1@netra.msu.montana.edu> X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Feb 03 15:24:15 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-02-03T00:00:00+00:00 List-Id: In article <798dvo$loq$1@netra.msu.montana.edu>, orion@cs.montana.edu (Jeremy D. Mullin) wrote: > 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? If you want that kind of flexibility, you should look into using direct_io instead. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own