Ok, i am looking more for a reason than code for this problem.....
1 - I use the normal assign, rewrite, closefile, commands to create a text file on the hard drive - so far no problem.
2 - I then delete the file via windows explorer and re-run the program again to create the file again. - still no problem.
the creation date and time of the second file is exactly the same as the first file i created AND deleted - problem!
Anyone know what is going on and why it is doing that?
I even used CreateFile to see if it was some oddity with delphi but the same happens.