Results 1 to 1 of 1

Thread: Reading a text line per line

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Reading a text line per line

    Hello!

    I'm creating a software that needs to read a text in a line per line mode, so between the lines other functions can be called and executed (for more about my software, [http://www.qtcentre.org/threads/4320...16#post197416]

    The problem is that I can't use functions such as read() or readAll() (from QFile and related) because it reads all the text and just after that I can use the functions.

    By the other hand, I couldn't figure out how to use functions such as readLine(), because all time that readLine() was called, it read allways the same first line of the text, it didn't move automatically to the second line and so forth, and I don't know how to do that manually ether.

    Could somebody help me please? I wasn't capable of finding something about this in the help pages.


    Thanks!


    Added after 5 minutes:


    Forget it; I solved the problem xD

    Thanks anyway =]
    Last edited by Momergil; 19th July 2011 at 15:46.

Similar Threads

  1. Replies: 3
    Last Post: 13th August 2010, 11:50
  2. Image reading and writing line by line
    By Astrologer in forum Qt Programming
    Replies: 7
    Last Post: 29th April 2010, 08:15
  3. Replies: 1
    Last Post: 21st November 2009, 08:29
  4. Replies: 0
    Last Post: 28th February 2009, 23:18
  5. Almost reading QImage line by line, help me please.
    By newqtuser in forum Qt Programming
    Replies: 4
    Last Post: 18th July 2008, 14:22

Tags for this Thread

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.