Answer:
input.open("rawdata");
input>>datum;
input.close();
Step-by-step explanation:
ifstream objects maintain a filebuf object as their internal stream buffer, and perform operations like input/output on the available associated files.
In above statements.
input.open("rawdata");
- The associated file named rawdata is opened.
input>>datum;
- The integer from the file is read into already declared variable datum.
input.close();