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?