open existing for append or not-existing for write