Reputation: 60471
I have a very simple question in C++. What is the equivalent of
x = new char[length];
mystream.read(x, length*sizeof(char));
delete[] x;
with seekg
to ignore a part of size length
of a binary file ?
Thank you very much !
Upvotes: 1
Views: 681
Reputation: 120751
You don't need seekg
, just use istream::ignore
.
seekg
, the way to go is seekg(length, std::ios::cur)
.
Upvotes: 2