whole file rec reader and input format