...and your question is? If the code is not producing the expected output, then would you attach a sample input file.