0

Hello apologies if this seems too easy

I have a text1.txt that has the following text:

Give it a break John {
   Give 123sawnghaksdsj your best shot
},

Give it a break Mike {
   Give asdwsadasdsad23 your lack shit
},

And from text2.txt

Main mac(){
    Jheader.pin.all
}

I would like to append content of text2.txt to text1.txt after

 Give it a break Mike {
       Give asdwsadasdsad23 your lack shit
    },

Without erasing anything in text1.txt

The text above are just examples close to my scenario.

I've tried searching google, but all I get is echo to a text file which will either erase the contents or append to last line :(

They were useful but not what I wanted.

rojo
  • 24,000
  • 5
  • 55
  • 101
Jomar Sevillejo
  • 1,648
  • 2
  • 21
  • 33

1 Answers1

1

Question solved!

I found this and is exactly what I wanted: Batch: insert lines from a .txt file into a .txt file

Community
  • 1
  • 1
Jomar Sevillejo
  • 1,648
  • 2
  • 21
  • 33