I need to write a function that takes a exterior file using fstream and scans it , looking for delimeters,for example:
an employee file that looks like this
the comma seperates each piece of data, while the semicolon seperates each employee record.
I need to be able to look through each piece of data and print out each out separately using the comma delimiters, and also differentiate each record by the semi colon.
i am not sure how to do it , i think i can use the fstream.seekg function to do it, but i dont know if thats the best way to do it. either way could someone please give me a coded example on how to do this?
Thank you for all your help.