Checking if the record file is properly created