home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / docs / lovelace / put_long.adb < prev    next >
Encoding:
Text File  |  1995-04-27  |  326 b   |  17 lines

  1.  
  2. with Ada.Strings.Unbounded, Text_IO, Ustrings;
  3. use  Ada.Strings.Unbounded, Text_IO, Ustrings;
  4.  
  5. procedure Put_Long is
  6.   -- Print "long" text lines
  7.   Input : Unbounded_String;
  8. begin
  9.   while (not End_Of_File) loop
  10.     Get_Line(Input);
  11.     if Length(Input) > 10 then
  12.       Put_Line(Input);
  13.     end if;
  14.   end loop;
  15. end Put_Long;
  16.  
  17.