LearnFrenzy
Sign in Take a free test

File Handling (fstream) · File Handling MCQ · Question 1

Which header provides file streams? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links