Starting the code to read rec files.