Multiple Choice
If the name of the input file was in a variable named filename, which of the following is the correct way to open the input stream named inFile and associate it with this file?
A) inFile.openfilename) ;
B) inFile=filename;
C) inFile="filename";
D) inFile.open"filename") ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q18: You may not have more than one
Q19: The flag to display floating point numbers
Q20: If you use the width command, it
Q21: In the following function declaration, the istream
Q22: To open a file with a user
Q24: '\n' is two characters.
Q25: Which of the following is the correct
Q26: When passing a stream to a function,
Q27: Which of the following loop condition statements
Q28: A _ is a flow of characters