[Qt-interest] how do create file in C drive of system

Yuvaraj R yuvaraj at ongobiz.com
Mon Oct 5 12:12:50 CEST 2009


QFile file("C:\yuvaraj.txt");

file.open(QIODevice::WriteOnly | QIODevice::Text);


In C drive yuvaraj.txt file is not created.



Thanks


Yuvaraj R

On Mon, Oct 5, 2009 at 3:34 PM, R. Reucher <rene.reucher at batcom-it.net>wrote:

> On Mon, 05 Oct 2009 15:05:01 +0530, Yuvaraj R wrote:
> > How do create file in C drive?
> Simply by opening it (in write mode) with its full path, including the
> dive letter (i.e. "C:/path/to/file").
>
> HTH, René
> --
> René Reucher
> rene.reucher at batcom-it.net
> http://www.batcom-it.net/
>
> "I've seen better heads on half a pint of beer."
> _______________________________________________
> 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/20091005/12c2e29e/attachment.html 


More information about the Qt-interest-old mailing list