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

Hi Toolic,

Sure don't want to be argumentative, or nitpick, but the OP said in his spec that the strings had to be printed at the line number of the text file that corresponded to the number in the input.

Replies are listed 'Best First'.
Re^5: Print to specific line
by Anonymous Monk on Jun 23, 2015 at 18:32 UTC
    Yeah well it works for me, Mr. Pedantic.

      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?

        Congrats, you just helped someone turn in a homework assignment. They learned nothing from you other than you will do their work for free.