文本文件里主要记录时间和当时的运行结果
解决方案 »
- 在线等■☆如何改变字段串的颜色再添到Memo中☆■
- 求问:哪里能下载到Installshield Express Custom Edition For Delphi
- strtoint与integer
- 有谁用过TimeSetEvent函数?
- 高手帮忙,锁定鼠标和键盘问题
- How do I convert the binary data to Hex from serial port mscomm.input?
- 如何才能先执行基类的keypress再执行程序的keypress?
- 两个字符串如何异或?
- 那里有的下delphi 7,最好是多cd 的
- 市面上有无DELPHI的中文帮助文档,请举书名及出版社,谢谢!!!!!!
- 如何用QuickRep打印ListView 控件中的列表内容;(急)
- 数据库连接
begin
if OpenDialog1.Execute then
begin { open a text file }
AssignFile(f, OpenDialog1.FileName);
Append(f);
Writeln(f, 'I am appending some stuff to the end of the file.');
{ insert code here that would require a Flush before closing the file }
Flush(f); { ensures that the text was actually written to file }
CloseFile(f);
end;end;
AssignFile(f, FileName);
try
Append(f);
except
Rewrite(f)
end;……
file:TStrings;
begin
file:=TStringList.Create;
file.Add(DateTimeToString(Now));
file.SaveToFile('c:\1.txt');
end;