I have a text file with lines of text and a number at the end. I read the line and the number and want to now print that line to a new text file at the line determined by the number. 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? Thanks!
In reply to Print to specific line by perlUser345
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |