Im new to C programming and Im trying to make a program that reads the context of a file named input.
#include <stdio.h>
#include <stdlib.h>
int main()
{
char ch;
FILE *in;
in = fopen("input","r");
printf("The contents of the file are\n");
fscanf(in,"%c",&ch);
printf("%c",ch);
fclose(in);
return 0;
}