Menu
[url]http://jslib.mozdev.org/libraries/io/file.js.html
Why is this not working ?
[CODE]
file=
{
‘write’:(
function(n)
{
f=new File(‘~/Desktop/’+n)
if(f.exists())
{
f.create();
f.open(‘w’)
f.write(‘This is a new line #1n’)
f.close();
}
}
)
}
file.write(‘test.txt’)