The rewind() function is used for moving the file pointer back to the beginning of the specified file. Here is its syntax:
void rewind(FILE *file_pointer)
Here, file_pointer is a file pointer pointing at the file.
In this chapter, we will learn to use both types of file handling using recipes that make real-time applications.