LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   C issues (https://www.linuxquestions.org/questions/linux-software-2/c-issues-712215/)

kalidoss 03-17-2009 05:34 AM

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...............

jf.argentino 03-17-2009 07:30 AM

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


All times are GMT -5. The time now is 01:06 AM.