http://cboard.cprogramming.com/announcement.php?f=3&a=39
^ Link for the topicstarter :p
Type: Posts; User: Zonakusu
http://cboard.cprogramming.com/announcement.php?f=3&a=39
^ Link for the topicstarter :p
I just tried the following code a few days ago. It dont know if its the best example, but it worked for me:
ofstream newFile (path, ios::trunc);
// path found?
if(newFile.good()...
Try #include <iostream.h>. Some compilers want .h behind it, some dont. (at least thats my experience)