Forum > FPC development
Reading and writing to files too slow
semichaud1:
Hi everyone,
In my program I have to read and write large files (100 MB or more) but each time it is taking too long.
I have tried to use settextbuf after reset and rewrite but it makes no difference in speed.
I need to use text files to store large quantities of data that my game engine uses.
Could you please help?
eny:
Can you tell a bit more about how you do the reading and writing?
Because with for example a TStringList reading and writing of even a 100MB file takes relatively little time.
semichaud1:
I am using the following commands:
assign
reset
rewrite
readln
writeln
and I am reading and writing ansistring and uint32 variables.
Please see the attachment for a section of my program.
BitBangerUSA:
Attachments and other options - below message text-box seen when posting a reply.
semichaud1:
Thank you. I have attached a section of my program.
Navigation
[0] Message Index
[#] Next page