0

Hi..

I want help in C++,
I want to read a file reversly and write it in a new file,
how can I do that?

Thanks for your time..

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Mona..
0

What scope of reverse?
Each line? Each character?

Start by saving each line in an array of std::string, then iterate backward through that array.

If it has to be by character, you could add a reverse printing of each std::string by the same method.

If you want more help, at least try to solve this yourself.

Good luck!

0

thaaaaaaaaaaaaaaaaaaanks..

you saved me i get the idea and i'll try it..

thanks alot.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.