Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Aug 2010
    Posts
    6

    Unhappy how to merge 2 files... seems simple enough right?

    without overwriting text in the file I am writing to...

    I have over 11 password text files. Over the years they got scattered over different hard drives and networks. I am trying to put them all into one text file on my server now.

    I have read the help file for over an hour and looked through some of the forum, but haven't found an answer yet. Every time I try to merge 2 files, BC3 overwrite's the text of the file I am trying to merge to. This is extremely frustrating. I saw the 3-way merge option but don't know if that would apply to me as i am really aggravated right now and just want to accomplish what would seem to be an easy function. this used to be easy in BC2.

    BC3 compares so many different types of media now, that doing what it used to be good at, is now a major undertaking for the novice user it seems... Any help would be greatly appreciated.

    Thank you.

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,366

    Default

    Hello,

    Sorry to hear you are running into some trouble.
    The 2 way Text Compare is designed to open two files, and then save them after moving over changes. The easiest way to accomplish this would be to create a copy of your file and then save into the copy.

    You can also use the File menu -> Save File As instead of clicking the Save button. This works like most other text editors.

    Our BC3 Pro feature Text Merge is actually exactly what you are looking for. It defaults to a view that accepts two files, and shows a 3rd pane as an Output pane. This can be expanded to have 3 input panes and a 4th Output pane to perform a 3way Merge.
    Aaron P Scooter Software

  3. #3
    Join Date
    Aug 2010
    Posts
    6

    Default

    ok, while you may have answered my question... I still dont understand.

    so i will try to spell this out in a simpler way:

    __________________________________________________ ___________
    text file 1 / line 1: username-password

    ok, now imagine that going on for 200 more lines with descriptions and such that span across multiple lines....

    text file 1 / line 1: "jimmy" uses username-password
    line 2: blah blah
    line 3: blah blah
    line 4: blah blah and blah /end "jimmy"
    __________________________________________________ ___________

    now text file 2 comes into play:

    text file 2 / line 1: DIFFERENT username-password

    now imagine this file going on and on for 200 or more lines as well

    text file 2 / line 1: did you see what "sally" said about this password...
    line 2: blah blah
    line 3: blah blah
    line 4: password / username /end "sally"
    __________________________________________________ ____________

    now here we are at where you said I can join these 2 files together...

    I dont want to lose what "sally" said on line 1,2,3,and 4 of text file 2 even though I still want the username/password of "jimmy" on line 1,2,3 and 4 to be saved as well in the same document.

    I have tried this in multiple ways... It just isnt working. maybe a step by step for the simple minded? I keep overwriting the text of the opposite file. VERY frustrating.. If the files text lines didnt match up exactly, it wouldnt be a problem, but they DO match up and i cant be bothered with changing and going through hundreds of lines of text for each file. that is what BC2 was for and now BC3... ughhh

    And yes, i know I am an idiot. thank you for any help with this.

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,366

    Default

    So you have two files which are aligning pairs of lines, but you do not want to replace either line? You want to have both lines present in the final output?

    If two lines are aligned, Beyond Compare 3 has determined that those are the same line, but contain changes. To prevent this from happening, you will need to either:
    1) Alter you alignment settings
    2) use the right-click Isolate command to break the alignment manually.

    You can alter the alignment settings in the Session menu -> Session Settings -> Alignment. You can enable the option "Never align mismatches", which will prevent file 1line1 and file2line1 from matching as a pair. You can also try tweaking the other settings, such as turning off closeness matching or using the Alternate alignment method to see if they help improve results for your specific files.

    If you are still having trouble, please email a pair of example files to support@scootersoftware.com. Also include your Support.zip (from the Help menu -> Support; Export) and a link back to this forum post.
    Aaron P Scooter Software

  5. #5
    Join Date
    Aug 2010
    Posts
    6

    Default

    Im sorry, I was away for a few days...

    thank you very much for your reply and i will certainly try your recommendations...

    You actually did understand exactly what it is that I need to accomplish. While you may have given the appropriate and correct answer to solve the problem, it is WAY too difficult to come by when a "not-so-avid-user-of-this exact-program" is trying to employ this type of function via the programming available.

    a simple recommendation would be a one-click button to do things with text files like this... with all of the options in this program, it seems that this would be a cinch... *shrugs*

    i will report back to let you know if the "right-click Isolate command to break the alignment manually" suggestion actually works. thats a mouthful isnt it?

    Dankk

  6. #6
    Join Date
    Aug 2010
    Posts
    6

    Default

    ok, here is the deal....

    while your suggestion may well work, it isn't easy and i still haven't been able to join two frikking text files together...

    should I just abandon BC3 and go back to BC2? I am a busy person and this optional crap is REALLY getting on my nerves.... Even "I" could write a basic program to put two files together with my extremely limited VB6, and Delphi programming knowledge.... i would sooner have the app complete than learn these options!

    This is just stupid.. over a week and all these options are moreso getting in the way than being of help!

    I guarantee you that more people are of my train of thought than the dedicated "help file" readers... Im sick of this. Make a one click solution!

  7. #7
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,584

    Default

    Hi Dan,

    If you just want to append one file to another, you can load the two files in the BC3 Text Compare. Right click on the first line of the right side file and select "Align With". Click past the last line of the left side file. This will align the text of the two files so they don't overwrite each other. Then use "Copy" to copy text between sides and do a save or "save as".

    This should be similar to Beyond Compare 2, only "Align With" in Beyond Compare 2 was called "Align Manually".
    Chris K Scooter Software

  8. #8
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,584

    Default

    For simple appending to an existing file, you can also use the command prompt:

    type a.txt >> b.txt

    Type lists the contents of a.txt, the >> operator appends the output of type to the end of b.txt.
    Chris K Scooter Software

  9. #9
    Join Date
    Aug 2010
    Posts
    6

    Default

    no, I dont want to append. A simple copy and paste of the contents of the entire file can also do that. (which almost sounds better than this headache, one loooooooong file with 15 repeats of the same thing in it.... lolol)

    I want to join the files and only add the differences... I finally have the time to sit down again and am just as frustrated as before. I did the session menu/session settings/alignment and even then this program cant do the simple task of adding the "different" lines to a new line in the merged output and move down the list. They get overwritten.

    this program reminds me of real player in the late 90's and early 2000 years... did everything but play music after a while.

  10. #10
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,366

    Default

    Did you try the Never Align Mismatches option I mentioned above? That combined with the Display Filter to Only Show Differences would show only different lines and would not allow anything to partially match. Use the Text Compare session type to mirror BC2 behavior.
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •