io - C++ file input with mixed delimiters and data types -
i trying input data text file: line format follows... string|string|int double
example: bob|oranges|10 .89
i can line in string using getline(infile, line)
i don't understand how break line distinct variables string variable.
thanks
for start write old fashioned c code using strchr.
or use string.find / find_first_of if using std::string
http://www.cplusplus.com/reference/string/string/find_first_of/
Comments
Post a Comment