home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LANGUAGE / ADA / LOVELACE / put_long.adb < prev    next >
Text File  |  1996-10-01  |  326b  |  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.