I'm trying to write to files, using WriteFile function.
The thing is, it is very slow!
I have to write a file that contains about 200-300 Integers.
I use a loop, like
WriteFile(FileHandle, &Int[i] ...)
and it takes a VERY LONG TIME to accomplish (At least on my P166).
How Can I overcome this? Should I use larger 'blocks' to write to the file, so I can use less WriteFile functions? Is that what makes it so slow?
Maybe there is a better way to read files? Maybe Memory-mapping? (I don't know what it means, I just heard about it). Please help...