I am very new to programming. Below is the code i have written which creates a file and adds some text to it, I want to open this file on the computer and very if it actually added the text or not. Where does the file gets saved.
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp;
fp=fopen("bacon.txt", "w");
fprintf(fp, "I love cheese\n");
fclose(fp);
return 0;
}