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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bb703cc61967d22 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-04 04:53:33 PST Path: nntp.gmd.de!news.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!hrz-ws11.hrz.uni-kassel.de!news.th-darmstadt.de!News.Uni-Marburg.DE!news.belwue.de!news.uni-ulm.de!cellar!s_rodema From: s_rodema@cellar.rz.uni-ulm.de (Joerg Rodemann) Newsgroups: comp.lang.ada Subject: Re: GNAT not 'getting' CR or LF? Date: 4 Jan 1995 11:47:53 GMT Organization: University of Ulm, Germany Distribution: na Message-ID: <3ee1ta$rmn@wega.rz.uni-ulm.de> References: <1994Dec29.230538.15695@nmt.edu> NNTP-Posting-Host: cellar.rz.uni-ulm.de X-Newsreader: TIN [version 1.2 PL2] Date: 1995-01-04T11:47:53+00:00 List-Id: Smilin' Ron Finkbine (finkbine@nmt.edu) wrote: > I am using the gnat system (DOS version) and am writing a > Fortran scanner. I am having a problem with the Text_IO.get > function getting a character. It seems to ignore the carriage > return and linefeed characters. Hello! As you might have read last month I had the same problem with GNAT on a Sun-Workstation. I tried to write a routine that reads one character from stdin without making any difference between normal and special characters (e. g. '\n'). Per chance I found a solution that worked pretty good for my needs. And it proved really easy, too. All I had to do was to replace the GET-routine from Text_IO with the same routine from IO. As it turned out, this procedure does not distinguish between alphanumerical or special characters. Especially it also returned the needed newline. I do not have any knowledge whether this solution is just working correctly on a Unix-machine or is also functioning under MS-Dos. On the other hand it seems really easier to use getline for the problem you described, in my opinion and as far as I understood your short description. > Thanks. > Ron So long George -- Joerg 'George' Rodemann Kelternweg 46 Department of Physics 89075 Ulm/Donau University of Ulm Tel. (0731) 54407 e-mail: rodemann@mathematik.uni-ulm.de