Hi, I have two issues I would like someone to help with. The first is I have an array:
type TPlant = class
EnglishName: String;
ScientificName: String;
Price: Double;
Toxic: String;
end;
and data is stored to it via procedure, what I would like is it tobe to access the data if I close and then re-open the program. I read something about a static array but wasn't too sure how to use it.
The 2nd issue is I have a file called (PlantData.txt) and I wish to read the data from the file into the same array mention above when the program is oppened. The text file is in the form showed bellow (I can change it to suite how you require). I tried the read procedures on delphibasics.co.uk but it was no help.
If anyone could help I'd be very greatful. Thanx
English Name 1 Scientific Name 1 1.8 poisonous
English Name 2 Scientific Name 2 2.4 non-poisonous
English Name 3 Scientific Name 3 2.3 poisonous
type TPlant = class
EnglishName: String;
ScientificName: String;
Price: Double;
Toxic: String;
end;
and data is stored to it via procedure, what I would like is it tobe to access the data if I close and then re-open the program. I read something about a static array but wasn't too sure how to use it.
The 2nd issue is I have a file called (PlantData.txt) and I wish to read the data from the file into the same array mention above when the program is oppened. The text file is in the form showed bellow (I can change it to suite how you require). I tried the read procedures on delphibasics.co.uk but it was no help.
If anyone could help I'd be very greatful. Thanx
English Name 1 Scientific Name 1 1.8 poisonous
English Name 2 Scientific Name 2 2.4 non-poisonous
English Name 3 Scientific Name 3 2.3 poisonous