Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-17-2009, 05:34 AM   #1
Registered: Mar 2009
Posts: 50

Rep: Reputation: 0
C issues

hi all,

i want to read csv format file in Turbo c language......

excel file contains..... CP101, CQ2345, 12/12/2009. (totally 25 records is there in my excel file)

i have done it using strtok function... i got it.... but

i want to store there 3 values into 3 separate varaibles.....

how can do it???? Anyone plz help me...............
Old 03-17-2009, 07:30 AM   #2
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
You can record each return of the "strtok" function, but keep in mind that the pointer you get is inside the string you give to the "strtok" function. If you want you can then copy into another string the substring, but you need then to know how many character to copy... Maybe you can take a look at the "index" function too


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI Ain in Wonder 8500DV LINUX LIVE boot issues (and TV issues) Flashmahn Linux - Hardware 1 03-09-2009 06:40 AM
xine playback issues, google earth issues AdamBath Slackware 8 08-22-2008 09:28 AM
Dell m1210 Linux issues (having issues getting network working under Ubuntu) thebert Linux - Newbie 4 03-14-2008 03:47 PM
X11 TTF Issues; OOo Font Issues Kenji Miyamoto Slackware 2 05-27-2005 06:30 PM
New to linux, so so lost, auto mounting issues, permissions issues slowhand22 Linux - Newbie 2 02-10-2005 09:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration