type
   Tmethod = Record
                name:string[20];
                condition:string[40];
end;
type 
   MethodFileType = file of TMethod;
请问这个FILE OF 起一个什么样的作用。最终会有一个什么样的效果。。

解决方案 »

  1.   

    A file a sequence of elements of the same type. Standard I/O routines use the predefined TextFile or Text type, which represents a file containing characters organized into lines. For more information about file input and output, see Standard routines and I/O.To declare a file type, use the syntaxtype fileTypeName = file of typewhere fileTypeName is any valid identifier and type is a fixed-size type. Pointer types--whether implicit or explicit--are not allowed, so a file cannot contain dynamic arrays, long strings, classes, objects, pointers, variants, other files, or structured types that contain any of these.
      

  2.   

    结构化文件。文件的内容可以看成是指定类型的数据的集合(如TMethod类型)。
      

  3.   

    结构化文件。文件的内容可以看成是指定类型的数据的集合(如TMethod类型)。