home *** CD-ROM | disk | FTP | other *** search
- -- Chapter 14 - Programming exercise 2
- with Text_IO;
- use Text_IO;
-
- procedure FloatIn is
-
- package Flt_IO is new Text_IO.Float_IO(FLOAT);
- use Flt_IO;
-
- Float_File : FILE_TYPE;
- Float_Dat : FLOAT;
-
- begin
-
- Open(Float_File,In_File,"FLTDATA.TXT");
-
- while not End_Of_File(Float_File) loop
- if End_Of_Line(Float_File) then
- New_Line;
- Skip_Line(Float_File);
- else
- Get(Float_File,Float_Dat);
- Put("The value read in is");
- Put(Float_Dat);
- New_Line;
- end if;
- end loop;
-
- Close(Float_File);
-
- end FloatIn;
-
-
-
-
- -- Result of execution
-
- -- (The output depemds on the input values.)
-
-