do you have permissions to write to the file?
your first example
std::ifstream infile( some_file )
is essentially the same as:
std::ifstream infile( some_file, std::ios::in ); // read only
but your second:
// append or random access
std::ofstream outfile( some_file, std::ios::app )
Last edited by verbal; 10-19-2003 at 12:16 PM.