hi all,
anybody can help me?
i want to write a text file in my directory ("MyDocs/Documents/"). how can i do this in JavaScript or QML?
i coded my example project in QML.
my javascript code:
function writeFile(sData)
{
var fso = new fopen("Scripting.FileSystemObject");
var fh = fso.CreateTextFile("/home/user/MyDocs/Documents/example.txt", true);
fh.WriteLine(sData);
fh.Close();
}
but that code now working
best regards.


Reply With Quote





