using VC++ .NET 2005 Express Edition on XP. I thought the open function only takes two parameters, but I'm apparently wrong. What is the third parameter? I looked at several fstream tutorials but none of them show a third parameter.
I came across this problem purely by accident -- the compiler compiled the code without complaint, but the program crashed on that line.
The comma in the above line should have been an or operator |.Code:fstream a; a.open(filename,ios::in | ios::out , ios::binary | ios::ate);



LinkBack URL
About LinkBacks


