Notifications
Clear all
[Closed] TEMP folder for different versions of max
Page 2 / 2
Prev
May 29, 2015 8:43 pm
Yes, the doctor would help.
I found the problem, but I can’t solve it of course.
Max 2014 can create the file and close properly, so that I can read it in 2012 and delete it even.
If I create the file in 2012, then it is used by 2012 when I want to delete from windows, and doesn’t allow to other versions to read. Even the following code doesn’t solve from 2012.
(
filename = sysInfo.tempdir + "\ est_001.dat"
file = createfile filename
format "%
" "2012" to:file
flush file
close file
free file
gc()
)
I can delete the file in windows just with the help of unlocker application. It says that max 2012 is using it.
May 29, 2015 8:43 pm
Thank you, net seams to work:
(
temparr=#("text1", "text2")
txtFile = @"C:\Temp\myText.txt"
sioFile = dotNetClass "System.IO.File"
sioFile.WriteAllLines txtFile temparr
)
Page 2 / 2
Prev