[Qt-interest] Writing a file with QtScript

skerit at kipdola.com skerit at kipdola.com
Fri May 29 09:26:10 CEST 2009


Hi everyone,

I'm converting a few old ruby scripts to Amarok2 at the moment, but  
I'm having a few problems I can't find the answer to in the  
documentation.

I want to download an XML file and store it locally. Getting the XML  
is no problem, but I have no idea how to store it!

I've been playing with Qfile for a while. I can *make* the file, I  
just have no idea how to save anything in it.

ui = new QFile ("zjever.txt" );
ui.open( QIODevice.ReadWrite );
var line = new QTextStream(ui);
ui.close();

Greetings,
Jelle De Loecker

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Qt-interest-old mailing list