simple c program demonstrating the use of readfile