请各路高手赐教~
有以下几个文件夹
文件夹命名规则是:(按日期递增)
列:20051229,20051230,20051231,20060101
在每个文件夹内都有file.txt
但是file.txt的内容各不相同
现在要将这些file.txt文件的内容全部合并到另外一个文本中去,比如:result.txt
要怎样实现呢~小菜鸟望各路大侠侠义相教~,不剩感激~
有以下几个文件夹
文件夹命名规则是:(按日期递增)
列:20051229,20051230,20051231,20060101
在每个文件夹内都有file.txt
但是file.txt的内容各不相同
现在要将这些file.txt文件的内容全部合并到另外一个文本中去,比如:result.txt
要怎样实现呢~小菜鸟望各路大侠侠义相教~,不剩感激~
解决方案 »
- Delphi中的报表问题
- 用 IdHTTP1 和 UrlDownLoadToFile下载文件出错
- 请问delphi或C++Builder中的按钮如何使用xp风格的32bit(含8bit alpha)图标?
- 记录更新问题
- 请问如何快速的赚到一个手提电脑的钱!
- 关于delphi中的datetimepicker控件使用的问题
- delphi cti高手请进
- 想让true在QuickRep中显示成别的字符~~
- 请问如何使一个edit在输入了3个字符后,能自动把焦点移到下一个Edit?
- delphi问题,急!急!急!
- 问个简单的windows系统的问题,哪个晓得,我佩服!
- 关于控件dbgrideh,急啊,谢谢了
sr: TSearchRec;
FileAttrs: Integer;
begin
StringGrid1.RowCount := 1;
if CheckBox1.Checked then
FileAttrs := faReadOnly
else
FileAttrs := 0;
if CheckBox2.Checked then
FileAttrs := FileAttrs + faHidden;
if CheckBox3.Checked then
FileAttrs := FileAttrs + faSysFile;
if CheckBox4.Checked then
FileAttrs := FileAttrs + faVolumeID;
if CheckBox5.Checked then FileAttrs := FileAttrs + faDirectory;
if CheckBox6.Checked then
FileAttrs := FileAttrs + faArchive;
if CheckBox7.Checked then FileAttrs := FileAttrs + faAnyFile; with StringGrid1 do
begin
RowCount := 0; if FindFirst(Edit1.Text, FileAttrs, sr) = 0 then begin
repeat
if (sr.Attr and FileAttrs) = sr.Attr then
begin
RowCount := RowCount + 1;
Cells[1,RowCount-1] := sr.Name;
Cells[2,RowCount-1] := IntToStr(sr.Size);
end;
until FindNext(sr) <> 0;
FindClose(sr);
end;
end;
end;以上是delphi帮助中关于这些函数使用的例子,你看看。