>
fo
! ! create test.dat, the file pointer value will ! be stored internally ! fopen test ! ! write three line to test.dat ! say/fptr "das Datum "date() say/fptr "die Zeit "time() say/fptr "die dritte Zeile " fclose ! ! inspect the contents of test.dat ! the file pointer will be stored in PTR1 ! fopen/acc=r/fptr=ptr1 test loop: ! ! read one line and store it in symbol s1 ! inquire/fptr=ptr1 s1 ! ! use gra_status() to test the eof condition ! if !gra_status() fclose/fptr=ptr1 end endif ! ! display the line ! say s1 wait 1 goto loop
! ! create test.dat, the file pointer value will ! be stored internally ! fopen test ! ! write three line to test.dat ! say/fptr "das Datum "date() say/fptr "die Zeit "time() say/fptr "die dritte Zeile " fclose ! ! inspect the contents of test.dat ! the file pointer will be stored internally ! fopen/acc=r test loop: ! ! read one line and store it in symbol s1 ! inquire/fptr s1 ! ! use gra_status() to test the eof condition ! if !gra_status() fclose end endif ! ! display the line ! say s1 goto loop