C++ Filehandling: Difference between ios::app and ios::ate?

前端 未结 5 1232
轻奢々
轻奢々 2020-11-28 06:13

What\'s the difference between ios::ate and ios:app when writing to a file.
In my view, ios::app gives you the ability to move aro

5条回答
  •  难免孤独
    2020-11-28 07:00

    ios::app--> "We cannot move the pointer. It will be only at end."

    ios::ate--> "We can move the record pointer to any other place."

提交回复
热议问题