#cprogrammingtutorial , #copytext A File can be used to store a large volume of persistent data. In this program we will copy a file to another file, firstly you will specify a file to copy. We will open the file and then read the file that we wish to copy in "read" mode and target file in "write" mode. Some of the important file management functions available in C are fopen ()-Creating a file or opening an existing file fclose ()-Closing a file fprintf ()-Writing a block of data to a file fscanf ()-Reading a block data from a file getc ()-Reads a single character from a file putc ()-Writes a single character to a file getw ()-Reads an integer from a file putw ()-Writing an integer to a file fseek ()-Sets the position of a file pointer to a specified location ftell ()-Returns the current position of a file pointer rewind ()-Sets the file pointer at the beginning of a file etc, fflush() is typically used for output stream only. Its purpose is to clear (or flush) the output buffer and move the buffered data to console (in case of stdout) or disk (in case of file output stream) Subscribe Buvis Elearning, press like button, click the bell for notifications. Share to your classmets and friends. Thank you for watching. Follow @BuvisElearning @BUVISPUZZLE