implemented using symbolic names
created file reading script dir
added function and then modified it so that everything is done in the while loop
added lines that print EOF and (c = getchar()) != EOF