Menu

join txt files and read a BIG txt file

2008-09-11
2012-11-13
  • Gert Van Assche

    Gert Van Assche - 2008-09-11

    Against all rules: 2 questions in 1 thread. But they are related.
    1. I'm looking for a way to merge or join thousands of small txt files into one big txt file.
    Does anyone if this can be done with notepad++ or a plug in? If not, any other tool?
    2. When I want to read a really big TXT file, notepad++ complains that there is not enough memory to do this job. Does anyone know what is the maximum size of a TXT file that notepad++ can open?

    thanks

    gert

     
    • DooGie

      DooGie - 2008-09-11

      Question 1, I don't know.
      As for the maximum size of txt file, I don't know that either.
      All I can say is that I regularly open up a text file which is around 120 MB in size.
      How big is the file you are talking about?

       
    • Gert Van Assche

      Gert Van Assche - 2008-09-11

      850 MB... but it will probably grow in the next couple of weeks...

       
    • gary coast

      gary coast - 2008-09-11

      start -> run -> cmd

      type * > name_of_big_file

      and if you really want to go for the lost art:

      edit name_of_big_file

       
      • HappyDog

        HappyDog - 2008-09-12

        > and if you really want to go for the lost art:
        >
        > edit name_of_big_file

        or even better:

          edlin name_of_big_file

         
    • Gadrin

      Gadrin - 2008-09-12

      > 1. I'm looking for a way to merge or join thousands of small txt files into one big txt file.

      What OS ?  Windows copy command will let you do things like:

      copy First.txt+Second.txt+Third.txt    All.txt

      Which puts the 3 into "All.txt"

      Haven't tried UNIX. But there's also GNU tools...like CAT

      These commands read and write entire files, possibly transforming them in some way.

          * cat invocation: Concatenate and write files.
          * tac invocation: Concatenate and write files in reverse.
          * nl invocation: Number lines and write files.
          * od invocation: Write files in octal or other formats.
          * base64 invocation: Transform data into printable data.

      Or if you're into complex edits, things like SED.

      I have GNU for Windows.

      >

       
    • gary coast

      gary coast - 2008-09-12

      you would have more options on a Mac/Unix box but Notepadders in this context should mean Windows

      I believe a wildcard like * or *.txt and after 'type' and before the > filename may be the tickect for someone who wants to join "thousand of files"

      perl could be fun to mess with too but so far, for anything not on a built-in command line, I always pull out the gun and just use a real programming language