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

It works for me (output):
goo 1 foo bar 3 hoo boo boo 5 yeah 7

Replies are listed 'Best First'.
Re^4: Print to specific line
by 1nickt (Canon) on Jun 23, 2015 at 18:31 UTC

    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.

      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?