"channu" writes:
I am beginner in c++ coding.I want to read a text file and replace
commas and space with tabs.
There are a huge number of ways to do this, some of them quite impressive to
look at with iterators liberally sprinkled with the all purpose word
"const". IMO, there is no one "right" way to do it.
I would write a while loop, examine each character as it came in, and if it
were a comma or a space, I would replace the character with the tab
character.