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
Related Questions on File Handling in C plus plus
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>

Join The Discussion