Delphi 批量多个字符串合并一个txt文件


本文整理自网络,侵删。

 
procedure saveStr(sToSave: string;path: string);
var
  fOut: TStreamWriter;
begin
  fOut := TStreamWriter.Create(path, true, TEncoding.UTF8);
  try
    fOut.WriteLine(sToSave);
  finally
    fOut.Free;
  end;
end;

相关阅读 >>

Delphi下cpu getcpuid实现(x86和x64)

win7下使用Delphi7的方法

Delphi deletefiles 删除目录下多个文件

几个webbrowser相关的函数

Delphi tlistview控件里添加背景色

Delphi中生成控件的两种方法

Delphi webbrowser设置自己定义user-agent

Delphi 实现延时自动关闭对话框

Delphi 查询当前目录下文件名是否存在

Delphi 结构体的使用、tbitmap和tmemorystream的转换

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...