Random Access File: Re-Use of existing file

KMatle

Expert
Licensed User
Longtime User
Just mentioned (after a deep search for the problem) that RAF is reusing existing files (i did not know that)

Situation: Scan a directory, read files into bytearray, do something, write it back to another dir. Start again. Same filenames. I was wondering why the file was ok (PDF -> could be displayed) but had about 100KB more space than the original.

Fact: RAF resuses the existing file (which was larger than my buffer:mad:). So: DELETE it...

You all new that of course?
 
Top