c++ - How to seek stream pointer of a memory mapped file(using boost)? -


I have mapped my file using 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 .

It worked fine and I was able to parse the memory map file. I used the 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?

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

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -