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 )
Verbal
Last edited by verbal; 10-19-2003 at 11:16 AM.
|