c++ - How to seek stream pointer of a memory mapped file(using boost)? -
I have mapped my file using It worked fine and I was able to parse the memory map file. I used the Is there any way that I can go through the desired file offset after reading the entire file? Thank you I think you want to reset it to < Code> clear () method should state state. View boost :: iostreams :: mapped_file_source and it A stream has declared the file as
boost :: iostreams :: stream & lt; Boost :: iostreams :: mapped_file_source & gt; Read as StreamReader .
getline to read the file and stored some offset from the file. While doing this operation I was able to use the
seekg to take the stream reader to the desired position but once the whole file is read, I can not find the stream reader from anywhere.
streamReader.fail () Returns right What stream reader clears the pointer after reaching the end of the file?
Comments
Post a Comment