I want to carry out some file handling operations and was thinking of using the <fstream.h> library.
2 questions:Code:#include "stdafx.h" #include <fstream.h> int main(int argc, char* argv[]) { fstream myStream; char file1[20] = "testing"; myStream.open(file, ios:://problem... return 0; }
Firstly, my problem manifests itself when i type in "myStream.open"
From all the reference material and examples that I have seen online I can see that there are only 2 arguments for this function. However, the Visual C++ intellisense is telling me that the signature is actually:
I am using Windows XP... is this the reason? Also... when I type in "ios" the intellisense does not give me options such as "app" . Instead I have "adjustfield, bad, basefield, bitalloc, bp, clear... etc".Code:void open (const char*, int, int=filebuf::openprot)
Secondly, I just wanted to know how come all the examples show that i can use a fstream object without first using the "new" keyword? How come it can be used without instanciation?
Thanks!


Reply With Quote
