Delete file not working

Hi boys and girls, I was here some time ago asking for help with an exporter I wanted to make in MaxScript.
Now this exporter is quite ready.
I must only delete the old file and write the new one.
Little trouble: the file doesn't want to move away, probably because it's still open by MaxScript (but I only read from it).
No, I tried a couple of commands to close the file without success.
Path is correct: I tried to make a lol.txt and delete it with MaxScript and it worked, so it's really the working file that produces some problem.
Any idea?
Or better, it's probably only a matter to know what the damn is the exact command to close the file :|
Thank you!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
GODLIKE's picture

Back here boys... here is

Back here boys... here is the situation:

"C:\Program Files\NeoAxis\Game\Bin\Data\Maps\NTT_TESTS\volca_test\Map.map"

This is the path with the file in the end and it is stored in variable fileNamez.

Map.map is just a text file and ONLY MaxScript opens it.

And this is the command I use to delete the file:

deleteFile fileNamez

Note that if I put in fileNamez this:

"C:\Program Files\NeoAxis\Game\Bin\Data\Maps\NTT_TESTS\volca_test\Copy of Map.map"

and try that deleteFile line again, it's working.

I am getting mad at this, there must be some bug damn hell!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.