[Qt-interest] Writing file.

Sujan Dasmahapatra sdh at lmglasfiber.com
Wed Apr 8 12:22:20 CEST 2009


Dear Friends I am writing some data in file which doesn't exist.So I
think it should be created and then being written but it's not writing
the data onto the file.Can u please anyone check whats wrong with this
piece of code !!!

 

QFile filewrite("profile_n.grd");

filewrite.open(QIODevice::WriteOnly);

QTextStream out(&filewrite);

out << noOfPoints << "\n";

 

Can anyone please check whats wrong in this why it's not writing the
data onto the file.

 

 

Kind regards, 
LM Glasfiber R&D (India) Pvt. Ltd.
 
Sujan Dasmahapatra
Project Engineer - CFD
  
Telephone: +91 80 66470248 
Mobile: 
E-mail: sdh at lmglasfiber.com <mailto:sdh at lmglasfiber.com>  

 

 

 

 

--------------------------------------------------------------

This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose or
store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090408/b384f5b9/attachment.html 


More information about the Qt-interest-old mailing list