vc6 - Editing A Pipe Delimited File With C++? -


i using visual studio 6 , want read pipe delimited file, edit fields , save file. best approach this? ado me example? or maybe boost? although have looked boost string stuff , doesn't support vc6. can stl help?

sorry ask don't want waste time messing around different options time tight. i've wasted time looking @ boost find vc6 isn't supported.

if file purely |-delimited can use overloads of getline allow specify different delimiter. read input "line line" - each line data next | character - modify field using string or stringstream , output it, not forgetting include '|' delimiter or whatever want in output.

if have newlines in input file deal with, it's little bit more complex - you'd need read each line stringstream using standard getline delimiter (eol), , parse , re-output stringstream using method noted above.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -