sequentially process file