Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User mohamed gamal's Avatar
    Join Date
    Oct 2009
    Posts
    52
    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
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    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 mohamed gamal's Avatar
    Join Date
    Oct 2009
    Posts
    52
    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
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    You still can use seek even with QTextStream
    http://doc.qt.nokia.com/latest/qtextstream.html#seek

  5. #5
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    QTextStream::seek (Seeks to the position pos in the device)

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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved