How can I populate a string array rather than fill a memo box ?
Does it read the file in one go or line by line ?
Thanks
As for the first point,
TMemo.Lines is just a (kind of)
TStringList so you can replace one for the other very easily--p.e.
LoadFromFile is a method of
TStringList. If you really want a simple array of strings, you should investigate
TTextReader and descendants (
TStreamReader and
TFileReader) to load from/save to file.
I don't know about the second point but you can just look at the implementation to see how it is done.
HTH
Edit: some typos and clarified some points.