AIFA
C Editor
Coding Lab
C Home
Lesson
Courses
CHAPTER 22
C File Handling
Write C code and run it directly in the browser.
▶ Run Code
↻ Reset
Clear Output
C Source Code
#include <stdio.h> int main() { FILE *file = fopen("aifa.txt", "w"); if (file != NULL) { fprintf(file, "Hello AIFA"); fclose(file); printf("File operation completed."); } return 0; }
Ready
Program Output
Output will appear here...
AIFA C Compiler
← Previous
📖 Lesson
All Chapters
Next →