deleting all contents from a file
May 7, 2013 at 10:44pm
Is there simple code to just delete all contents from a binary file?
May 7, 2013 at 10:50pm
file.open("file", ios::out|ios::trunc);
this deletes all content when opened
May 7, 2013 at 11:18pm
great thanks!
Topic archived. No new replies allowed.