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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,193488de865b5f1e,start X-Google-Attributes: gid103376,public From: Jakob Heinemann Subject: GNAT: Handling of textfile end-of-page Date: 1997/06/18 Message-ID: <33A80160.1AFF@ericsson.com>#1/1 X-Deja-AN: 249356676 Organization: Ericsson Saab Avionics AB Reply-To: Jakob.Heinemann@ericsson.com Newsgroups: comp.lang.ada Date: 1997-06-18T00:00:00+00:00 List-Id: Hi! I'm running GNAT 3.09 (gcc 2.72) on a Sun Solaris 2.5. I have trouble detecting special characters in a textfile that I read. In the source text file that I read, pages are separated with FF (FormFeed) characters, you know ASCII 12. = In the files the FF-character can appear at any place on = a line. The Ada.text_io-package can only detect new-page as a combination of which is not satisfactory for me. None of the ways I've tried, reading single characters from the file, will return a FF-character. = The opposite is on the other hand possible. I can write to text files using ada.text_io.put(character'val(12)) and it will appear on the outfile anywhere on a line, but then = I can't read it back and detect the FF. = If anyone can help me with this problem I'll be very happy! Please help me! = /Jakob :) PS: Please also make a direct reply to my e-mail! = mailto:Jakob.Heinemann@ericsson.com Ericsson Saab Avionics AB Link=F6ping +46 13 284249