[Qt-interest] file operations in qt ?
Nuno Correia
npaulo.nuno at gmail.com
Fri Sep 25 14:11:32 CEST 2009
*Copy ( Paste ):*
QFile file1( "*directory*/file.txt" );
bool sucessfull = file1.copy( "*newDirectory*/file.txt"); // in this step
you can change the file name
*Cut:*
after the last step add this line
if ( sucessfull )
file1.remove();
In QFile documentation you can get more help.
2009/9/25 Andrei Sebastian Cimpean <andreiamenta at gmail.com>
> The thing is i cannot find something that's really helpful concerning the
> things i want to do with files... how does this thing work in qt?
> Cut, copy, paste etc...
> Do you know something that could help me?
> Thank you
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090925/2a147a13/attachment.html
More information about the Qt-interest-old
mailing list