logoISU  

CS256 - Principles of Structured Design

Fall 2021

Displaying ./code/sternflCode/h6/p01.c

/*

p01.c - open the README file in this directory, read every character in the
		file, and then print them to the terminal.


*/

#include <stdio.h>

int main(){

	int c;   						// declare variable for character
	FILE *f = fopen("README", "r"); // use fopen to open the README file

	//call fgetc inside a while loop, run until we get the EOF character


     //just print the character inside the while loop



	return 0;

}