Given the availability of an ifstream object named input, write the other statements necessary to read an integer into a variabl
e datum that has already been declared from a file called rawdata. Assume that reading that one integer is the only operation you will carry out with this file. (Note: write just the statements, do not define a main function.)
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.
As she is about to leave the position, in account of professionalism, she should NOT do any unnecessary harm to the current company, and she should notify the company for necessary description before leaving.