Please post in the correct forum. Thread moved to - File I/O & Other I/O Streams

You need to provide the input file and also give an example of the desired output.