in reply to Re^5: Print to specific line
in thread Print to specific line

I don't think it's pedantic to follow the specifications that are provided by the customer!

For example, line: "Today is a good day 5". This line needs to be printed in the 5th line of the new text file. The next line after it may be: "Today is a good day 1". This line needs to be printed in the 1st line of the new text file. How do I do this?

Replies are listed 'Best First'.
Re^7: Print to specific line
by Anonymous Monk on Jun 23, 2015 at 18:57 UTC
    Congrats, you just helped someone turn in a homework assignment. They learned nothing from you other than you will do their work for free.