BlockRead的用法或者BlockRead帮助文件的翻译!(40分)

  • 主题发起人 主题发起人 ReStart
  • 开始时间 开始时间
R

ReStart

Unregistered / Unconfirmed
GUEST, unregistred user!
谁有BlockRead的详细用法或者它的帮助文件的翻译呀?
翻译一下吧?
procedure BlockRead(var F: File;
var Buf;
Count: Integer [;
var AmtTransferred: Integer]);
Description
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.
BlockRead reads Count or fewer records from the file F into memory, starting at the first byte occupied by Buf. The actual number of complete records read (less than or equal to Count) is returned in AmtTransferred.
The entire transferred block occupies at most Count * RecSize bytes. RecSize is the record size specified when the file was opened (or 128 if the record size was not specified).
If the entire block was transferred, AmtTransferred is equal to Count.
If AmtTransferred is less than Count, ReadBlock reached the end of the file before the transfer was complete. If the file's record size is greater than 1, AmtTransferred returns the number of complete records read.
If AmtTransferred isn't specified, an I/O error occurs if the number of records read isn't equal to Count. If the $I+ compiler directive is in effect, errors raise an EInOutError exception.
 
F是无类型文件变量,Buf是任意变量,count是一个整数,AmtTransferred 是一个可选的
整数。readblock从文件F中读取count个(或者少于count)记录到从BUF第一个字节开始
内存中。实际读取的记录数放在AmtTransferred中。整个读取的数据块最多占count*记录大小
个字节。记录的大写在打开文件的时候指定(如果不指定,默认为128)。
如果AmtTransferred小于count,那么说明在读取数据的过程中readblock到达文件尾部。如果
记录的大小大于1,那么AmtTransferred返回读取的完整记录数。
如果没有指定AmtTransferred,当读取的记录数不等于count,则发生I/O错误。如果编译选项
$I+ 打开,引起EInOutError错误
 
对了,再问一下,那blockwrite呢
 
接受答案了.
 

Similar threads

I
回复
0
查看
589
import
I
I
回复
0
查看
720
import
I
I
回复
0
查看
711
import
I
I
回复
0
查看
602
import
I
I
回复
0
查看
822
import
I
后退
顶部