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: nasser@apldbio.com (Nasser Abbasi) Subject: Re: End of Line Question Date: 1996/07/15 Message-ID: #1/1 X-Deja-AN: 168804883 sender: news@biosys.apldbio.COM references: <4s4tn7$po6@masala.cc.uh.edu> <4s5hdb$hmb@news3.digex.net> to: Mike Ibarra original-sender: nasser@apldbio.com organization: Applied BioSystems newsgroups: comp.lang.ada Date: 1996-07-15T00:00:00+00:00 List-Id: As someone allready mentioned , you can use end_of_line, as a full example: -- shows how to read a line from stdin using get -- nasser abbasi 7/13/96. Gnat Ada95 on Solaris 2.5 with Ada.Text_IO; use Ada.Text_IO; procedure T is Line: String(1..80); -- as an example,assumes no more than 80 will be typed Ch: Character; I : Integer ; begin I := 0; while(not End_Of_Line) loop Get(Ch); I:= I+1; line(I) := Ch; end loop; Put("There were" & Integer'Image(I) & " characters typed :" & Line(1..I)); end T; -- Nasser Abbasi. C/C++/Ada Solaris. GeneAssist - A client/server application for Nucleic acid and protein sequence search and analysis. Perkin Elmer - Applied BioSystem division. email: nasser@apldbio.com MSEE(control), MSCS, MSCE, FM (Fide Chess Master).