file of 起一个什么样的作用

wangs039 2005-04-07 04:10:45
type
Tmethod = Record
name:string[20];
condition:string[40];
end;
type
MethodFileType = file of TMethod;
请问这个FILE OF 起一个什么样的作用。最终会有一个什么样的效果。。
...全文
155 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
solokey 2005-04-19
  • 打赏
  • 举报
回复
设置一个文件的类型..该文件被你声明的结构填充
Corn1 2005-04-19
  • 打赏
  • 举报
回复
结构化文件。文件的内容可以看成是指定类型的数据的集合(如TMethod类型)。
Corn1 2005-04-19
  • 打赏
  • 举报
回复
结构化文件。文件的内容可以看成是指定类型的数据的集合(如TMethod类型)。
大户翁 2005-04-19
  • 打赏
  • 举报
回复
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 syntax

type fileTypeName = file of type

where 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.

16,748

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧