reset(f,1)函数的参数是如何定义的,我想说的是后面的一个参数是什么意思?
    一个资料上说它是:它定义了用来传递数据时记录的大小。
     我咋不了解呀!请解析!有例子来说明更好,多谢!!!

解决方案 »

  1.   

    Delphi syntax:procedure Reset(var F [: File; RecSize: Word ] );DescriptionIn Delphi code, Reset opens the existing external file with the name assigned to F using the mode specified by the global FileMode variable. An error results if no existing external file of the given name exists or if the file can be opened with the current file mode. If F is already open, it is first closed and then reopened. The current file position is set to the beginning of the file.Warning: The default value of FileMode is 2 (Read/Write access). If this is not changed to a read-only file mode before calling Reset, attempts to open read-only files will fail.F is a variable of any file type associated with an external file using AssignFile. RecSize is an optional expression, which can be specified only if F is an untyped file. If F is an untyped file, RecSize specifies the record size to be used in data transfers. If RecSize is omitted, a default record size of 128 bytes is assumed.If F is assigned an empty name, such as AssignFile(F, ''), then after the call to Reset, F refers to the standard input file.If F is a text file, F becomes read-only.After a call to Reset, Eof(F) is true if the file is empty; otherwise, Eof(F) is false.