Which function is used to rewind the file pointer to the beginning of the file in C++?
A. rewind()
B. reset()
C. file.rewind()
D. file.seekg(0)
Answer: Option D
A. rewind()
B. reset()
C. file.rewind()
D. file.seekg(0)
Answer: Option D
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>
Join The Discussion