Results 1 to 6 of 6

Thread: New line when writing a File

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2009
    Location
    The Netherlands and Spain
    Posts
    150
    Thanks
    6
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: New line when writing a File

    Try this:
    out << myVector.at(i) << '\n'; // note: single quotes

    Or this:
    out << myVector.at(i) <<endl; // should also work

  2. The following user says thank you to boudie for this useful post:

    locke (17th March 2010)

Similar Threads

  1. writing in to a string via FILE*
    By caduel in forum General Programming
    Replies: 3
    Last Post: 12th July 2008, 09:08
  2. problem writing an xml file
    By mickey in forum General Programming
    Replies: 1
    Last Post: 28th January 2008, 16:05
  3. Writing a XML file
    By Djony in forum Qt Programming
    Replies: 7
    Last Post: 5th February 2007, 16:23
  4. XML file writing
    By mbjerkne in forum Qt Programming
    Replies: 2
    Last Post: 24th May 2006, 19:04
  5. Writing an XML file
    By qball2k5 in forum Qt Programming
    Replies: 9
    Last Post: 19th March 2006, 10:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.