系统函数$
fopen
用于打开一个文件,并还回一个整数指针.然后,$
fdisplay
就可以使用
这个文件指针在文件中写入信息,写完后,则可以使用$
fclose
系统关闭这个文件
例如:
integer write_out_file;
//定义一个文件指针
integer write_out_file=$fopen("write_out_file.txt");
$fdisplay(write_out_file,"@%h\n
%
h"
,
addr
,
data)
;
$
fclose("write_out_file");
以
上
语
法
是
将
addr
,
data
分
别
显
示
在
”@%h
\n
%
h”
中
的
2
个
%
h
的
位
置,
并