Hi,
I encounter a strange problem. I have a program that saves values into a file, closes the file (data.dat) after saving and renames it into store.dat. So this works when I execute the code from dark basic, but when I make the final exe, it doesn't rename data.dat to store.dat anymore. (it only generates data.dat)- any ideas?
saving:
cls
rem Lösche Datei
if file exist("data.dat") then delete file "data.dat"
rem Öffne Datei zum schreiben
open to write 1,"data.dat"
write ... (here I write spezific data)
write ...
rem Lösche "store.dat"
if file exist("store.dat")=1
delete file "store.dat"
endif
rem Benenne Datei um
if file exist("store.dat")=0
rename file "data.dat","store.dat"
endif