Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor masoud_bayat's Avatar
    Join Date
    Aug 2008
    Location
    Zanjan
    Posts
    183
    hi all
    how to can read from text file line by line and show them in a listbox
    thanks

  2. #2
    Registered User sriky27's Avatar
    Join Date
    Dec 2005
    Posts
    1,236
    Hi,

    You can use RFile to read the file how to use that is in the following link http://wiki.forum.nokia.com/index.ph..._writing_files
    and for sample list box implementation you could follow this link
    http://wiki.forum.nokia.com/index.ph...simple_listbox
    Regards,
    Sriky

  3. #3
    Nokia Developer Champion Nitesh Bhardwaj's Avatar
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777
    and for reading line by line u can use "TFileText"
    but file should be use the windows end of line marker.

  4. #4
    Regular Contributor masoud_bayat's Avatar
    Join Date
    Aug 2008
    Location
    Zanjan
    Posts
    183
    hi nitesh
    what is code windows end of line marker?
    thanks

  5. #5
    Registered User leodom's Avatar
    Join Date
    Jul 2008
    Posts
    28
    Hi,

    Code for the end of line is "\n"

    You can also take a look at this example:

    http://wiki.forum.nokia.com/index.ph...ead_a_CSV_file

  6. #6
    Regular Contributor masoud_bayat's Avatar
    Join Date
    Aug 2008
    Location
    Zanjan
    Posts
    183
    thanks leodom

Similar Threads

  1. ListBox
    By ASP-NewBie in forum Symbian C++
    Replies: 34
    Last Post: 2008-04-24, 07:31
  2. Read text Line from text File
    By CarusoAlex in forum Symbian C++
    Replies: 4
    Last Post: 2008-02-06, 12:24
  3. Carbide.c++ Express don't want build HelloWorld
    By azarov-it in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 7
    Last Post: 2006-04-09, 11:00
  4. Can EDWin show line breaks?
    By hanwang in forum Symbian User Interface
    Replies: 2
    Last Post: 2004-01-29, 07:28
  5. Anvil Studio, Midi and Vibration
    By superfriik in forum Audio
    Replies: 1
    Last Post: 2003-10-12, 15:34

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