매일생성되는 화일에서 정리에서 리포트로 뽑으려 하는데
잘 정리가 않되서요 그리고 델파이로 잔것이 실행도 않되고요
도와주세여,,
unit packet;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Grids, DBGrids, Db, DBTables;
type
TForm1 = class(TForm)
DataSource1: TDataSource;
Label1: TLabel;
Table1: TTable;
Label2: TLabel;
DBGrid1: TDBGrid;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
f : textfile;
S : string;
nloop : Longint;
begin
nloop :=0;
Assignfile(f,'c:ab199904.txt');
while not seekEof(f) do
begin
readln(S);
// if (ORD(S[1]) = 13 and ORD(S[2]) = 10) then
// begin
// Table1.Append;
//공백레코드 추가
// nloop := 0;
// end
// else
// begin
Table1.edit;
Table1.Fields[nloop].AsString := s;
Table1.Post;
inc(nloop);
end;
end;
end.
백업처리는 vclzip로 .backup디렉토리에 압축화일 만드는걸로 했는데
복구처리시 backup디렉토리에 있는 압축화일중에 하나를 선택해서
data디렉토리에 압축을 해제하는걸로 했더니 같은 화일이 있다면서
덮어씌울건지 메시지가 나오거든요?
복구처리는 어떻게 하면 되죠?