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.open(filename);
b. inFile=filename;
c. inFile="filename";
d. inFile.open("filename");


a. inFile.open(filename);

Computer Science & Information Technology

You might also like to view...

Python uses ‘if' and ‘else' as the keywords for a selection control structure.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Typically, the default font size in Word is ____.

A. 8 B. 12 C. 14 D. 16

Computer Science & Information Technology

Auto constructor with date and tank inputs

What will be an ideal response?

Computer Science & Information Technology

A numbered list would be appropriate for presenting the steps for opening a document in Word

Indicate whether the statement is true or false

Computer Science & Information Technology