Appending text files

Appending text files

1
NewbieNewbie
1

    Jul 22, 2004#1

    Does Ultraedit have the capability to append (eg. "all open files")? I have looked, but can't see it - altho I don't think I have the latest version currently installed...

    Alternatively, does anyone know where I can get a free little app to do it?

    6,604548
    Grand MasterGrand Master
    6,604548

      Jul 30, 2004#2

      You can append files with good old dos command copy. Open a command prompt (Run cmd) and enter

      copy file1.txt+file2.txt+file3.txt destination.txt

      or this example with wildcards

      copy file?.txt destination.txt

      Enter copy /? for details what copy can do for you.
      Best regards from an UC/UE/UES for Windows user from Austria

      1
      NewbieNewbie
      1

        Nov 26, 2004#3

        Copy doesn't work well with text files with unicode charset encoded in UTF-8 (I'd tried all command parameters /b etx...). I also tried cat on linux, it also doesn't work well... I hoped UltraEdit would have some trick to correctly do this kind of task... Does someone have an idea about merging unicode text files encoded in UTF-8?

        6,604548
        Grand MasterGrand Master
        6,604548

          Nov 27, 2004#4

          This macro copies and appends all open files to a new file. Be carefull, the append sequence is defined by the window history queue.

          InsertMode
          ColumnModeOff
          HexOff
          UnixReOff
          NewFile
          "This is the new target file !!!!!!!!!!"
          Loop
          NextWindow
          Top
          Find MatchCase "This is the new target file !!!!!!!!!!"
          IfNotFound
          SelectAll
          StartSelect
          Copy
          EndSelect
          CloseFile
          PreviousWindow
          Paste
          Else
          Delete
          ExitLoop
          EndIf
          EndLoop
          Best regards from an UC/UE/UES for Windows user from Austria