cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
deleting all contents from a file
deleting all contents from a file
May 7, 2013 at 10:44pm UTC
tpinon
(69)
Is there simple code to just delete all contents from a binary file?
May 7, 2013 at 10:50pm UTC
Carm
(18)
file.open(
"file"
, ios::out|ios::trunc);
this deletes all content when opened
May 7, 2013 at 11:18pm UTC
tpinon
(69)
great thanks!
Topic archived. No new replies allowed.