SaveVarToFile
2014-12-01 11:05
155 查看
procedure SaveVarToFile(SqlStr, FileName: String);
var AStr:TStringList;
AFilePath:string;
begin
if FileName='' then
FileName:=FormatDateTime('YYYYMMDDHHMMSS',Now);
AStr:=TStringList.Create();
AStr.Add(SqlStr);
AFilePath:='';
AFilePath:=GetCurrentDir;
AFilePath:=AFilePath+'\'+FileName+'.txt';
AStr.SaveToFile(AFilePath);
AStr.Free;
end;
var AStr:TStringList;
AFilePath:string;
begin
if FileName='' then
FileName:=FormatDateTime('YYYYMMDDHHMMSS',Now);
AStr:=TStringList.Create();
AStr.Add(SqlStr);
AFilePath:='';
AFilePath:=GetCurrentDir;
AFilePath:=AFilePath+'\'+FileName+'.txt';
AStr.SaveToFile(AFilePath);
AStr.Free;
end;
相关文章推荐
- vtigercrm save sorry attempt to access restricted file
- 编译错误:Failed to save the updated manifest to the file ..........
- vs2008:general error c101008a: Failed to save the updated manifest to the file ".
- Failed to save the updated manifest to the file
- Failed to save package file--Integration Services
- coreseek错误WARNING: failed to open pid_file '/usr/local/coreseek/var/log/searchd_mysql.pid'.
- [warn] 7#7: *676 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000007
- How to use .netrc file on windows to save user and password
- coreseek错误WARNING: failed to open pid_file '/usr/local/coreseek/var/log/searchd_mysql.pid'
- SaveBitmapToFile
- using vb.net export a datatable to Excel and save as file
- How to save a NSImage as a new file
- 资源地址;浏览和打开文件;GetOpenFileName;GetSaveFileName;OPENFILENAME;PtrToStringChars;.NET类库的打开文件夹操作
- VS2008 1>mt.exe : general error c101008a: Failed to save the updated manifest to the file
- failed to create pid file /var/run/rsyncd.pid: File exists报错
- Dubbo Failed to save registry store file, cause: Can not lock the registry cache file
- how to save array in file in c#
- DBGridEh导出功能详解(SaveDBGridEhToExportFile说明)
- docker 解决:Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
- mt.exe : general error c101008a: Failed to save the updated manifest to the file