Quote Originally Posted by Ixy
Now I have a new problem. For some reason, everytime i want to write something to a file, I get exitcode 5.
Which is "File access denied."
Maybe something useful here:
http://www.delphibasics.co.uk/RTL.asp?Name=Reset
"Reset - Open a text file for reading, or binary file for read/write"

Make sure you use Write, not Writeln? If doesn't work we might need to see the use of these commands in your program.

Also "myFile : TextFile;" < this is not allowed as you need a binary file.
http://www.delphibasics.co.uk/RTL.asp?Name=Write

I have actually never tried using dynamic block sizes with this method. Is it possible?