The codeDoesn't create a new file.Code:
myfile.open("C:\\myfile.ddt", ios::in | ios::out)
My book says it should create a file if the file does not exist.
It is my first use of fstream. Using ios::out alone is alright.