home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
modula2
/
mtmod2.lbr
/
MTWRIT.MZD
/
MTWRIT.MOD
Wrap
Text File
|
1987-08-30
|
768b
|
31 lines
MODULE MTWRITE;
(* Program to measure the speed of writing sequential *)
(* data to an empty floppy disk. *)
FROM InOut IMPORT WriteString, WriteLn;
FROM FileSystem IMPORT File, Lookup, Reset, WriteChar, Close;
CONST RecordNumber = 512;
BlockLen = 127;
Filename = 'B:TEMPO.DAT';
VAR Ch : CHAR;
I,J : INTEGER;
F : File;
NewFile : BOOLEAN;
BEGIN
Ch := 'A'; (* Initialize character *)
NewFile := TRUE; (* Create new file if not found *)
Lookup(F, Filename, NewFile);
Reset(F);
FOR I := 1 TO RecordNumber DO
FOR J := 1 TO BlockLen DO
WriteChar(F,Ch)
END;
WriteChar(F,36C)
END;
Close(F);
WriteString('DONE'); WriteLn;
END MTWRITE.