And could you please explain me why do I have to use ios::ate and ios::beg instead of nothing or just ios::beg?
btiffin
Posted: Sun Feb 15, 2009 12:05 am Post subject: RE:Binary reading
ios::ate will seek to end on open, so then ios::beg will be required to seek back to the beginning. If you don't set ate, you won't need the seek to beginning. If you have something like