1.Suppose that infile is an ifstream variable and employee.dat is a file that contains employees' information. Write the C++ statement that opens this file using the variable infile.
2.Suppose that infile is an ifstream variable and it is associated with the file that contains the following data: 27306 savings 7503.35. Write the C++ statement(s) that reads and stores the first input in the int variable acctNumber, the second input in the string variable accountType, and the third input in the double variable balance.
Don't tell me that this was your homework or something... ^_^
Interesting to remember that all these types (int, string and double) can be outputed to a stream like cout, or inputed from a stream like cin or an ifstream... :-)