Jump to content

add copied text lines to text file


Recommended Posts

i have 2 text files

the first one looks like this

[0100 Kitchen]
[0101 Tavern]

the second one looks like this

0100 11,14 -> 0101 3,20
0101 3,19 -> 0100 11,13
0101 10,22 -> 0 287,296
0101 18,14 -> 0 290,293

the needed result would if working look like this

[0100 Kitchen]
0100 11,14 -> 0101 3,20

[0101 Tavern]
0101 3,19 -> 0100 11,13
0101 10,22 -> 0 287,296
0101 18,14 -> 0 290,293

basically what it does is, it adds the line that starts with "[" above the lines that start with the corresponding number. also, it should not erase other lines and take their place. all "[" lines should be inserted on top creating a new line

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...