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

Scott Aron Bloom Scott.Bloom at sabgroup.com
Mon Oct 5 12:19:10 CEST 2009


Try the following:::

 

1)      Read a book on basic C strings

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

 

 

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Yuvaraj R
Sent: Monday, October 05, 2009 3:13 AM
To: R. Reucher
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] how do create file in C drive of system

 


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/6d8528ef/attachment.html 


More information about the Qt-interest-old mailing list