Create reader.c

Adding the code to the repo