×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    52

    read till delimiter from file

    i want to read read from afile untill specific delimiter ( for example like this *//* ) and seek to this delimiter.
    how can i do that ?!!

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: read till delimiter from file

    You can use QFile, QTextStream::readLine and QString to find an occurrence of a pattern. Use lexical analyser for more complicated tasks.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    52

    Re: read till delimiter from file

    i've experiencing some adversities using Qtextstream as i'm looking to read a file line by line, witch i can do as expected, but i can't just go to a specific line or reverse the reading order.

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: read till delimiter from file

    You still can use seek even with QTextStream
    http://doc.qt.nokia.com/latest/qtextstream.html#seek

  5. #5
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: read till delimiter from file

    QTextStream::seek (Seeks to the position pos in the device)
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

Similar Threads

  1. inputstream of socketconnection blocks till read is done????
    By shaii in forum Mobile Java Networking & Messaging & Security
    Replies: 13
    Last Post: 2010-11-08, 14:23
  2. Replies: 3
    Last Post: 2008-10-24, 15:19
  3. Replies: 1
    Last Post: 2005-10-13, 06:57
  4. Cache<:DELIMITER:>Reload same deck<:DELIMITER:>Session
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2002-05-16, 01:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×