Hello everyone, I been practicing with the filestreams in c++ and I can successfully get the string within a binary file to show on screen. However, the issue I am having is that I only want it to show strings from a certain offset to an end offset.
This is the code I have to display all the strings:
The file itself is just a test .bin file. It displays all characters but I only want it to display for example 'test file' and not 'test file @#zxds#' etc.
I'm guessing my issue lies within the seekg method but can't figure it out.