Results 1 to 2 of 2

Thread: fgets() analog in Qt

  1. #1
    Join Date
    Nov 2007
    Posts
    103
    Thanks
    71
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default fgets() analog in Qt

    I'd like to read an entire line from a text file and dump it into a QString.
    How do you read entire line (including empty spaces) with Qt. In normal C, I would use fgets(), but what is the fgets() analog in Qt?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: fgets() analog in Qt

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. embedded widgets analog gauges thermometers buttons..
    By matrix241 in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 25th February 2015, 20:33
  2. Analog Gauges
    By RookieAM in forum General Programming
    Replies: 1
    Last Post: 15th February 2008, 21:53
  3. Custom Widget Plugin Analog Clock
    By kemp in forum Qt Programming
    Replies: 8
    Last Post: 11th August 2006, 13:22

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.