Which header file is used for reading and writing to a file?

a) #include<iostream>
b) #include<fstream>
c) #include<file>
d) #include<fe>

1 thought on “Which header file is used for reading and writing to a file?”

  1. b
    Explanation: header file contains all the file reading and writing functions. Also and contains functions only reading and only writing to files related functions respectively.

Leave a Comment