Difference between ios::app and ios::ate [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: C++ Filehandling: Difference between ios:app and ios:ate? What is the difference between these two file opening modes ? ios:ate sets the get/put pointer position to the end of the file => reading/writing will begin from end, but how is it different from ios::app, which again opens a file in append mode...but when I have created a ofstream and opened it in ios:app mode, the put stream pointer still points to the