in reply to File manipulation
If you break the task into parts, you can then see what needs to be done.
Ask the follow-up questions: when do you write out the line in the desired format? Do you need to do anything special when you've finished reading the input file?
You can write the program to do this task. You just need to think about it.
|
|---|