hi all can you please help me I am trying to make my program load/add names from a txt file to a listview I have the code to add names to text but I dont no how to make it load and add!
procedure TForm.FormClose(Sender: TObject; var Action: TCloseAction);
S := TStringList.Create;
for i := 0 to ListView1.Items.Count-1 do
S.Add('"'+ ListView1.Items[i].Caption +'",'+ ListView1.Items[i].SubItems.CommaText);
thats the code I use to save to text file but how do I load?
can anyone help me???
thanks for taking the time!