Hello everyone, i'm having trouble adding a line and insert certian text after end of line. When end of line reached start a new line and insert line of text. I have 2 text files, i compare the first 16 characters on both files, if they match insert text line from file2 to file1. I can't get it to work where it will insert on a new line. Here's part of file1 and file2
SKUABC {ON HAND=100} {QTY AVAIL=50} {WH1 AVG=20} ;(text line in File1 warehouse1)
SKUABC {ON HAND=25} {QTY AVAIL=10} {WH2 AVG=5} ;(text line in File1 warehouse2)
if first 16 characters on each file match search for end of line of File1 and insert new line with text line from File2. Thanks for your help.
SKUABC {ON HAND=100} {QTY AVAIL=50} {WH1 AVG=20} ;(text line in File1 warehouse1)
SKUABC {ON HAND=25} {QTY AVAIL=10} {WH2 AVG=5} ;(text line in File1 warehouse2)
if first 16 characters on each file match search for end of line of File1 and insert new line with text line from File2. Thanks for your help.