the rewind() function resets the file position indicator to the beginning of
the file it takes the file pointer as its arguments.
rewind() funtion syntax
we are create this program opens a file in write/read mode takes strings as input using fgets(),
rewind the file and then displays the same strings using fputs().