Sign in to follow this  
Followers 0
face

add copied text lines to text file

2 posts in this topic

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0