Question 1
Back to Exercise
Which header declares std::ifstream, std::ofstream and std::fstream?
- A <iostream>
- B <fstream> Correct
- C <filesystem>
- D <cstdio>
Correct Answer: Option B
<filesystem> is for paths and directories; <cstdio> is the C FILE* API.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!