Which statement correctly opens an input stream named in_file and attaches it to a file name project.txt?
A) in_file=project.txt
B) in_file="project.txt"
C) in_file.open"project.txt") ;
D) in_file.openproject.txt) ;
Correct Answer:
Verified
Q22: Which of the following is the correct
Q23: To open a file with a user
Q24: Which include directive is necessary for file
Q25: If a file did not open correctly,
Q26: After a stream is opened, before it
Q28: The member function setf stands for
A) set
Q29: To open an output file and add
Q30: The member function eof) is true/false) when
Q31: When is the external name of the
Q32: A _ is a variable that has
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents