C++ searching a csv file or a text file to search
Posted on 1998-08-03
I want to search a text file by passing a structure . That is I want to display my search results.
Then based on those results I want to search a csv file and display the results.
It is like I have to search a txt file with many lines, Where each line is having some entries whuch are seperated by commas. Depending on input I have to search the file for any matching and to display the results i.e
for eg., The lines are like this
12,anil, yes, no,xxx, yyy;
and so on I will be getting the above things as a struct and I have to search.
similar is the case with the csv file.
If u have any source code accessing a csv file and searching it to Please send me.
Thanks in advance