String parsing

Login to reply to this topic.
Wed, 2005-11-09 13:23
Joined: 2005-10-10
Forum posts: 37
Hey everyone...

I'm developing a stock application where i get stock data from the internet as a .csv(Comma Separated Value) format.  I want my application to read through the data received and separate the contents.

The data received is given as follows:

"500209.BO",2637.1001,"11/7/2005","3:28pm",+48.45,2589.00,2658.95,2580.00,308178


I want the data to be separated at the commas.

like follows:

Stock Name: "500209.BO"
Stock Value: 2637.1001
Date: "11/7/2005"
Time: "3:28pm"

and so on... and
1. written onto a file on the system...
2. I want it to be displayed in the above mentioned format on the screen using CEikLabel or equivalent...

I'm pretty new to symbian so i'd be most grateful if someone could help me out with this...

I'm working on Series 60 Symbian 7.0s v2.0 SDK.  I'm using VC++ as editor...

Please help me out on this ppl...

The Cruise is on...


Wed, 2005-11-09 14:00
Joined: 2005-07-10
Forum posts: 68
Re: String parsing
Try "TLex" class for parsing. Just read the doc about TLex and it is very easy to use. If you have done with the parsing, then check our the "RFs"  and "RFile" file class for creating and writing in the file. After you have done with file, check out "CEikLabel" for printing those info to the display.
Thu, 2005-11-10 21:42
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2006
Re: String parsing
TextUtils::ColumnText is a lot easier than Tlex in your case. This function is totally cool when you need to parse CSV text.


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Fri, 2005-11-11 05:50
Joined: 2005-10-10
Forum posts: 37
Re: String parsing
thanx 4 de reply eric...

Am reading up on this... But could you please get me a small snippet that would explain the whole thing a whole lot easier for me??? I'm a newbie... Tats y!!!

Ashwin...

The Cruise is on...

  • Login to reply to this topic.