Hi guys, i want to read a file backward using iterator pls any explain me with sample code

I can give you some direction via point-to-point if that helps..

1. Open and read the file into an structure that supports iterators.
2. Create an iterator to the structure.
3. You can easily point your iterator (at least with STL) to the end of the file with iterator.end()
4. Create a loop where your iterator falls backwards in the structure while you do the tricks you want to do.
5. Close the file!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.