[javascript-dev] Re: Re: Re: creating files problem in a standalone
Jean-Baptiste Thiebaut
pplato at gmail.com
Tue Jan 29 10:58:04 MST 2008
- Previous message: [javascript-dev] Re: Re: Re: creating files problem in a standalone
- Next message: [javascript-dev] Re: Re: Re: creating files problem in a standalone
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I'm a bit desperate to get this working.
The function below save a file while I'm running Max but doesn't when I'm running the standalone. But, more strange, while running the standalone, the file is opened (I have a message on the console) but the file is not written on the disk. I've checked everywhere and the file is not created, although the condition "f.isopen" is satisfied.
function _save(n)
{
var f = new File("bkp","readwrite");
if (f.isopen)
{
f.writefloat32(3.14159);
f.close();
post("
the file has been saved");
}
else
post("could not create file: ",f , "
");
}
Any idea?
Thanks
JB
- Previous message: [javascript-dev] Re: Re: Re: creating files problem in a standalone
- Next message: [javascript-dev] Re: Re: Re: creating files problem in a standalone
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
