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,13fd7bcbabaa9519 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: End of Line Question Date: 1996/07/12 Message-ID: #1/1 X-Deja-AN: 168385132 references: <4s4tn7$po6@masala.cc.uh.edu> <4s5hdb$hmb@news3.digex.net> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-12T00:00:00+00:00 List-Id: Mike said "You could test for this a couple of different ways. In Ada83, package ASCII contains identifiers for all ASCII control characters. So you could test: IF ch = ASCII.cr THEN ..." This is wrong on two counts, first of all reading with TExt_IO you will not see carriage return characters. Second of all, there is no guarantee that CR's appear at the end of each line in any case, and, glaringly obviously!, all Unix systems use LF as the end of line character, not CR. So this suggestion is completely wrong -- stick to the end_of_line test, that is precisely what it is there for.