BlockWrite <br>(In System Unit)<br><br>Delphi syntax:<br><br>procedure BlockWrite(var f: File; var Buf; Count: Integer [; var AmtTransferred: Integer]);<br><br>Description<br><br>F is an untyped file variable, Buf is any variable, Count is an expression of type Integer, and AmtTransferred is an optional variable of type Integer.<br><br>BlockWrite writes Count or fewer records to the file F from memory, starting at the first byte occupied by Buf. The actual number of complete records written (less than or equal to Count) is returned in AmtTransferred. <br><br>The entire block transferred occupies at most Count * RecSize bytes. RecSize is the record size specified when the file was opened (or 128 if the record size was unspecified). <br><br>If the entire block is transferred, AmtTransferred is equal to Count on return. <br><br>If AmtTransferred is less than Count, the disk became full before the transfer was complete. In this case, if the file's record size is greater than 1, AmtTransferred returns the number of complete records written.<br><br>BlockWrite advances the current file position by AmtTransferred records.<br><br>If AmtTransferred isn't specified, an I/O error occurs if the number written isn't equal to Count. If the $I+ compiler directive is in effect, errors raise an EInOutError exception.