✔ What is file handling, and why do we need it?
✔ Difference between text files (.txt) and binary files (.bin)
✔ File handling functions in C (stdio.h)
✔ Opening a File (fopen())
✔ Closing a File (fclose())
✔ Reading from a File (fgetc(), fgets(), fread())
✔ Writing to a File (fputc(), fputs(), fwrite())
✔ Appending Data to a File (a mode in fopen())
✔ "r" – Read mode
✔ "w" – Write mode (overwrites existing content)
✔ "a" – Append mode
✔ "r+", "w+", "a+" – Read/write modes
✔ Reading and writing characters (fgetc(), fputc())
✔ Reading and writing strings (fgets(), fputs())
✔ Handling formatted data using fprintf() and fscanf()
✔ ftell() – Get the current position in a file
✔ fseek() – Move file pointer to a specific position
✔ rewind() – Reset file pointer to the beginning
✔ Checking if a file exists before opening
✔ Handling file read/write errors