File handling in C

File Handling is the is the storing of data in a file using a program. In file handling, some function are used to handle the file.

Functions of File Handling

  1. fopen()
  2. It is used to opens new or already created file.
  3. fclose()
  4. It is used to closes the file.
  5. fprintf()
  6. It is used to write data into the file.
  7. fputc()
  8. It is uesd to writes a character into the file.
  9. fputw()
  10. It is uesd to writes an integer to file.
  11. fscanf()
  12. It is used to reads data from the file.
  13. fgetc()
  14. It is used to reads a character from file.
  15. fgetw()
  16. It is used to reads an integer from file.
  17. fseek()
  18. It is used to sets the file pointer to given position.
  19. ftell()
  20. This function is used to returns current position.
  21. rewind()
  22. It is used to sets the file pointer to the beginning of the file.