ScriptSpot

Forum topic · General Scripting

Question about FileStream

By mambrus · 2009-03-30

Description

Hi

I'm currently working on some kind of export.
The script opens a filestream and writes
some content into a file (like *.txt)

So.. everything works *smile* BUT as I try
to delete the file (within windows explorer)
I get the message "file cannot be deleted ..
still in use"

I'm allready using "flush " and
"close " .. but still buggy.

thanks for your help
regards
markus

Comments (2)

freesmith · 2009-04-21

hi, i'm currently working on something with filestream. and get the same thing, only when i close max i can delete it.. dont know whats it about though..
but tell me do you know a way to write (") character directly to txt file from max script..like you take the path value from material and want to write it as string into txt file

mambrus · 2009-04-01

... still in need of help ! :D