Hi, Here is the File content. I want to use strtok to separate each.
but the problem is if i use strtok(string, "\",");
, the zip code (19428) of the detail is miss place and take State (PA) for the first record Because of "," in State. Although the second one is ok. Do u have any idea to fix it? I use strtok(string, "'\",\"'\"");
for " ","
" and " "
" but it is also not working.
FirstName,LastName,Company,Address,City,County,State,ZIP,Phone,Fax,Email,Web
"Brandon","Ortolano","Steele, Kendall D Esq","100 Front St", "Conshohocken", "Montgomery", "PA","19428", "610-834-2651", "610-834-9404","brandon@ortolano.com","http://www.brandonortolano.com"
"Jonathon","Todeschi","Central Motive Power Inc","210 W Pennsylvania Ave #-650", "Towson", "Baltimore", "MD","21204", "410-828-0316","410-828-3043","jonathon@todeschi.com","http://www.jonathontodeschi.com"