Hi i was wondering if anyone can help i have 2 text file i want to compare.
one will be the final one and one is temporary
the temp file will have new information in it and i want to write these changes to the final file but i need to insert them in the same place as they are in the temp file so for example if the final file has
1
2
3
6
7
and the temp file has
1
2
3
4
6
7
to insert the number 4 in at line 4 so it mirrors the temp file basically the final file my be edited out side of the script so this information needs to remain intact and the new lines added in the correct location in the file also there may be more than one change in the temp file any help would be great