Posted on 2001-06-29
help me on this,
i need to read a line in sometimes it can be 36 fields in comma delimeted format and sometimes the lines change.
in other words the first line could be 36 fields and then the second line could change to 42 fields.
what i would like to do it to write the whole line and then read the first 36 fields of that line.
and assign each field to a var,
i have a program already written which can read a normal deliemeted file but when the delimiter changes my program spouts up.
i dont want any url's posting. if somebody could show a peiece of code that would be great.
this could be a example of a file
1) line "Experts exchange","64 lost am i","kkkk","llllll","kkkk"
2) line "lerlek","lkl","reklre","lrkel","rkel","rkelk","rekje"
i need to read the first 36 or what ever and disregard the rest