I'd like to write a utility routine to open files. One of the arguments to the routine would be the io mode (read, write, etc.) How does one access these arguments and store them in a variable?
I'm not really trying to modify anything; just access them somehow. For example, I know that ios::out is a 0x10, but I don't know how to "grab" that value and pass it as a parameter (or even use it in a variable as I described above). It doesn't make sense that C++ would keep that hidden from the user, does it?
Well, what you're really asking to do is to pass a non-variable command type argument to a function, which I don't think I've ever seen done. In order for you to be able to do that, C++ as a language would have to be aware of itself, which it isn't.
Hi, Stewbond - the program I'm running should scrap all old output and regenerate the files, so the ate bit isn't appropriate here. I'll keep it in mind for future applications, though.