ios::out will erase the content of the file if there's any
ios::app will seek to end-of-file before each write
ios::out will erase the content of the file if there's any
ios::app will seek to end-of-file before each write
source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense