#include <stdio.h>

int main()
{
	FILE *fp;
	char c;

	fp = fopen("hello.txt", "r");	
	if( fp == NULL )
	{
		printf("Unable to open file\n");
		return -1;
	}

	printf("File opened\n");

	while( (c = getc(fp)) != EOF )
	{
		printf("%c", c);
	}

	fclose(fp);

	return 0;
}
