so where's that darned nocreate?
TIA,
joshua
This behavior is guaranteed by C++ standard
27.8.1.3 Member functions
2 ... It then opens a file, if possible, whose name is the NTBS s ("as if"
by calling std::fopen(s, modstr)).
The NTBS modstr is determined from mode & ~ios_base::ate as indicated in
Table 92...
and Table 92 maps in to "r", in | out to "r+", in | binary to "rb" and in |
out | binary to "r+b".
Now C standard says:
7.19.5.3 The fopen function
4 Opening a file with read mode ('r' as the first character in the mode
argument) fails if the file does not exist or cannot be read.
--
With best wishes,
Igor Tandetnik
"Joshua Emele" <jem...@colevalley.com> wrote in message
news:e6Ixeon2AHA.2000@tkmsftngp05...
> Im using msvc++ 6; it seems ios::nocreate is not defined.
> Looking in <xiobase> is see:
> [definition of _Openmode]
> so where's that darned nocreate?
Calm down, and open your eyes (SCNR ;-) ):
you're looking for ios::<something>, so just look in the right header:
in ios.h, you find
class ... ios {
enum open_mode{...}, with nocreate neatly defined!
}
regards,
Ralf Linke
He's looking for the new std ios, not the deprecated ios.h
"Robin" <darka...@yahoo.com> wrote in message
news:9e9un...@enews1.newsguy.com...