This message was edited by porodoro at 2007-1-2 21:16:41
This message was edited by porodoro at 2007-1-2 21:16:2
Hi again.
I need a way to read/write alot of data in a file.
Tini doesnt help , because of the 64kb limitation.
Tmemini doesnt help either(8.000 characters per line).
My idea:
I have a function that extracts data from two strings.
for example :
<counter>2</counter>
The function will extract the number "2".
And my question is : Can i use the normal read file funtion to read the data in a temporary string list?
(note:the program will read each line)
Something like this:
list := tstringlist.create
list.clear
while (not EOF) do begin
list.add(readln(f))
end;
or just : list.loadfromfile()
for i=0 to list.count-1 do begin
GET_DATA(list.strings[i],'<counter>','</counter>')
end
list.free
Or its a bad idea ?