haclon csv文件操作 及写入封装文件
1,关于csv文件的创建
注意事项:
delete_file 要求路径必须是纯英文的,不然找不见
*//先创建路径
path_csv:=Substrings[0]+'.csv'
* //检查是否存在
file_exists (path_csv, FileExists)
if (FileExists)*//若存在则删除
delete_file (path_csv)
endif
*创建并打开
open_file (path_csv, 'output', FileHandle)
*这里写一个封装函数进行写入
write_csv (100, 200, 'good_boy', '', FileHandle)
*写完关闭
close_file (FileHandle)
2,封装函数的内容,虽然简单,但是特别高效
write-csv的封装
支持文字,数值,空,且自动换行。扎实吧
a := a+','
b := 
