thx za odpowiedz ,
ja rozwiąząłem to troszke inaczej
zapis
procedure TFiles.Button4Click(Sender: TObject);
var
i,l:integer;
a,b,c,d,e,f:string;
begin
memo1.Clear;
f:=';';
i:=ListView1.Items.Count -1;
for l:=0 to i do
begin
a:=Listview1.Items.Item[l].Caption;
b:=Listview1.Items.Item[l].SubItems.Strings[0];
c:=Listview1.Items.Item[l].SubItems.Strings[1];
d:=Listview1.Items.Item[l].SubItems.Strings[2];
e:=Listview1.Items.Item[l].SubItems.Strings[3];
Memo1.Lines.Add(a+f+b+f+c+f+d+f+e+f);
end;
memo1.Lines.SaveToFile('pliki.txt');
end;
odczyt
zywcem wyciete z tego forum
procedure TDownload.Button2Click(Sender: TObject);
var
TF : TextFile;
S : String;
i, Poz : Integer;
begin
AssignFile(TF, 'pliki.txt');
Reset(TF);
i := 0;
while not Eof(TF) do
begin
Readln(TF, S);
Poz := Pos(';', S);
ListView1.Items.Add.Caption := Copy(S,1,Poz-1);
Delete(S, 1, Poz);
Poz := Pos(';', S);
ListView1.Items.Item[i].SubItems.Add( Copy(S,1,Poz-1)) ;
Delete(S, 1, Poz);
Poz := Pos(';', S);
ListView1.Items.Item[i].SubItems.Add( Copy(S,1,Poz-1)) ;
Delete(S, 1, Poz);
Poz := Pos(';', S);
ListView1.Items.Item[i].SubItems.Add( Copy(S,1,Poz-1)) ;
Delete(S, 1, Poz);
Poz := Pos(';', S);
ListView1.Items.Item[i].SubItems.Add( Copy(S,1,Poz-1)) ;
Delete(S, 1, Poz);
Inc(i);
end;
CloseFile(TF);
end;
pozdrówka genius23
--GeniusWarez Will Reborn.