home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
LANGUAGS
/
MODULA2
/
MTMOD2.LBR
/
MTREAD.MZD
/
MTREAD.MOD
Wrap
Text File
|
2000-06-30
|
768b
|
29 lines
MODULE MTREAD;
(* Program to measure the speed of reading sequential *)
(* data to an empty floppy disk. *)
FROM InOut IMPORT WriteString, WriteLn;
FROM FileSystem IMPORT File, Lookup, Reset, ReadChar, Close;
CONST RecordNumber = 512;
BlockLen = 128;
Filename = 'B:TEMPO.DAT';
VAR Ch : CHAR;
I,J : INTEGER;
F : File;
NewFile : BOOLEAN;
BEGIN
NewFile := FALSE; (* Create new file if not found *)
Lookup(F, Filename, NewFile);
Reset(F);
FOR I := 1 TO RecordNumber DO
FOR J := 1 TO BlockLen DO
ReadChar(F,Ch)
END;
END;
Close(F);
WriteString('DONE'); WriteLn;
END MTREAD.