#include<stdio.h>intmain(){ FILE* fp; fp =fopen("file.txt","w"); // using write modeputc('s', fp); // putting a characterfclose(fp); fp =fopen("file.txt","r"); // using read modechar c; c =getc(fp); // getting the character from fileprintf("%c\n", c); // printing to our screenfclose(fp);return0;}