Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loop thru coma delemited file and search for a value

Status
Not open for further replies.

waely

Programmer
Dec 7, 2003
227
US
hi guys,
I hope someone can help me coding my little C++ program.
I have a coma delemited text file and I want to be able to run through the data and grab the file name and check if it exists in one folder. here what my text file look like:
-----------------------------------
docID,FileName,Pages,location
"01","00000001.PDF","2","IMG_0001"
"02","00000045.PDF","1","IMG_0001"
"03","00012144.PDF","2","IMG_0002"
"04","00dfddfd.PDF","10","IMG_0001"
"05","000fdfdf.PDF","8","IMG_0007"
.....
--------------------------------------

I want to be loop through the text file and get the value of FileName and search for it in some folder C:\myfile
then return either true of false.

I'm sorry if I"m asking too much. any help is appreciated.

thanks
waely
 
Well, present your code sceleton then let's solve its real problems...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top