A Admin • 833K Points Coach Q. Which of the following is the correct syntax to open a file in C++? (A) ofstream file('filename.txt'); (B) ofstream file("filename.txt"); (C) ifstream file('filename.txt'); (D) ifstream file("filename.txt"); Correct Answer - Option(B) Views: 16 Filed under category C++ Hashtags: Share Manage Tags
Discusssion
Login to discuss.