xxxxxxxxxx
#include <stdio.h>
int main() {
FILE *outputFile;
const char *filename = "output.txt";
// Open the output file in write mode
outputFile = fopen(filename, "w");
// Check if the file was successfully opened
if (outputFile == NULL) {
printf("Error opening the file %s!\n", filename);
return 1; // Exit the program with an error code
}
// File opened successfully, continue with writing or other operations
// Close the file when done
fclose(outputFile);
return 0;
}
xxxxxxxxxx
you didnt terminate your program, you just closed it. program is still running,
therefore, you cannot edit it without causing this bug.
terminate it in the terminal