initial commit
This commit is contained in:
commit
60db522e87
107 changed files with 36924 additions and 0 deletions
17
tests/test133.pas
Normal file
17
tests/test133.pas
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
program test133;
|
||||
var f:file;
|
||||
buf:string;
|
||||
begin
|
||||
open(f, 'newfile.text', ModeOverwrite);
|
||||
writeln(f,'This is a test file created by a Pascal program.');
|
||||
writeln(f,'There is nothing else of interest here.');
|
||||
close(f);
|
||||
|
||||
open(f, 'newfile.text', ModeReadonly);
|
||||
while not eof(f) do
|
||||
begin
|
||||
readln(f,buf);
|
||||
writeln(buf);
|
||||
end;
|
||||
close(f);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue