If the name of a file to open is in the string variable name fileName, which of the following will correctly open the file for output?

a. out_file.open(fileName);
b. out_file.open("fileName");
c. fileName.open(outfile);
d. out_file.open(fileName.c_str());

d. out_file.open(fileName.c_str());

Computer Science & Information Technology

You might also like to view...

In a zipped folder, the compression ratio indicates the amount of reduction of a file's ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Match the following report items with their definition

I. Source II. Report view III. Print Preview IV. Layout view V. Design view A. A table or query B. Shows the report design but not the data C. Shows the report and the data D. Continuous page layout E. Allows for changes to the page layout

Computer Science & Information Technology