I have a .txt file as following:
012|23456|sourc e|N|
01|23453|code|Y |
2349|234|write| N|
what I want to do is to format the file like following:
012 23456 source N
01 23453 code Y
2349 234 write N
I want to use C++ to replace "|" with " " and make each column align left. Can anyone help me about it? Thank you so much.
012|23456|sourc e|N|
01|23453|code|Y |
2349|234|write| N|
what I want to do is to format the file like following:
012 23456 source N
01 23453 code Y
2349 234 write N
I want to use C++ to replace "|" with " " and make each column align left. Can anyone help me about it? Thank you so much.
Comment