Ok here it is: I want to read a file backwards, the catch is that I want to do this in binary mode to make a, really lame, data encryption program. Is there any easy way (<10 lines) To do this?
Zssffssz
-4
Junior Poster
Recommended Answers
Jump to PostIf the file is small enough, read it into a std::vector<unsigned char> and use the container's reverse_iterator.
If it is big, either read it in chunk by chunk
or memory map the file
All 4 Replies
jackmaverick1
-4
Junior Poster
vijayan121
1,152
Posting Virtuoso
Zssffssz
-4
Junior Poster
vijayan121
1,152
Posting Virtuoso
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.