Infosys interview question

Real time scenario on how to process a .txt file using java batch job