#include <stdio.h> int main() { // Open a file in write mode; this creates notes.txt FILE *fptr = fopen("notes.txt", "w"); // Always close the file when you are done fclose(fptr); printf("File created successfully!\n"); return 0; }
Click Run to execute this code.