Hi,
I'm trying to compile the following in Visual C++6.0
#include "boost/config.hpp"
#include "boost/filesystem/operations.hpp" // includes boost/filesystem/path.hpp
#include "boost/filesystem/fstream.hpp" // ditto
#include <iostream> // for std::cout
using namespace boost::filesystem;
int main(int argc, char* argv[])
{
remove_all( "foobar" );
create_directory( "foobar" );
boost::filesystem::ofstream file( "foobar/cheeze" );
file << "tastes good!\n";
file.close();
if ( !exists( "foobar/cheeze" ) )
std::cout << "Something is rotten in foobar\n";
return 0;
}
and I keep getting an error saying that
c:\program files\microsoft visual
studio\vc98\include\boost\filesystem\fstream.hpp(95) : error C2504:
'basic_ofstream