initial commit
This commit is contained in:
commit
60db522e87
107 changed files with 36924 additions and 0 deletions
25
tests/readtest.pas
Normal file
25
tests/readtest.pas
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
program readtest;
|
||||
var filename:string;
|
||||
buf:char;
|
||||
f:file;
|
||||
count:integer;
|
||||
t:DateTime;
|
||||
begin
|
||||
write('Enter filename: ');
|
||||
readln(filename);
|
||||
|
||||
t := GetTime;
|
||||
writeln('start:', TimeStr(t, true));
|
||||
open(f, filename, ModeReadOnly);
|
||||
|
||||
count := 0;
|
||||
while not eof(f) do
|
||||
begin
|
||||
read(f,buf);
|
||||
count := count + 1;
|
||||
end;
|
||||
close(f);
|
||||
t := GetTime;
|
||||
writeln('end:', TimeStr(t, true));
|
||||
writeln(count, ' bytes read.');
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue