In C you have stdio.h which contains all standard io functionality:
In your scenario you would require:
printf() to write output to the screen.
scanf() to read input from keyboard.
For file operations you require a couple more steps:
FILE *myfile;
myfile = fopen("myfile.txt", "w");
fprintf(myfile, "Whatever...\n");
fclose(myfile);