Top "Seekg" questions

fstream seekg(), seekp(), and write()

I'm looking for some clarification on how seekg() and seekp() works with respect to when you are writing to a …

c++ file-io fstream seekg
What's wrong with the ifstream seekg

I am trying to do a seek and re-read the data. but the code fails. The code is std::ifstream …

c++ ifstream seekg
How to check whether ifstream is end of file in C++

I need to read all blocks of one large file(about 10GB) sequentially, the file contains many floats with a …

c++ ifstream file-handling line-endings seekg
C++ Reading file backwards from the end of the file

I am trying to write a program with a menu that reads from a text file a few different ways. …

c++ eof seekg
read and write file in chunks of bytes in c++

I have searched for it everywhere, but I can not seem to understand how to use ios::cur. I need …

c++ file file-io seekg
Seekg(ios::beg) not returning to beginning of redirected input

I am making a huffman encoder and to do so i need to read over the input (which will ALWAYS …

c++ input cin huffman-code seekg
How to read a growing text file in C++?

I am trying to read from a file which is growing (something similar to what tail -F does), but there …

c++ logging stl fstream seekg
fstream - How to seekg() to position x from end

I'm looking for a way to set my get pointer at position x from the end of an fstream. I …

c++ fstream seekg