topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday April 30, 2024, 1:26 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - nagelfar [ switch to compact view ]

Pages: [1]
1
Finished Programs / SOLVED: Txt Split & Sort
« on: October 03, 2011, 03:09 AM »
Hello,

What I am thinking about is a program which could split single txt files or all txt files in a given directory into smaller chunks. One would be able to set the size or number of the chunks. Such sliced portions would also be text files, with consecutive 001, 002, 003 etc numbering added to the file name (before the .txt extension).
What is also important is that the program should recognize text encoding correctly and retained it in the output chunks.

The chopped text files should be saved to individual folders which would be created automatically and named after each processed txt file.
I mean something like this:
> content of Input Folder = TextfileA.txt, TextfileB.txt, TextfileC.txt
> content of Output Folder =
   - sub-folder TextfileA = TextfileA001.txt, TextfileA002.txt, TextfileA003.txt ...
   - sub-folder TextfileB = TextfileB001.txt, TextfileB002.txt, TextfileB003.txt ...
   - sub-folder TextfileC = TextfileC001.txt, TextfileC002.txt, TextfileC003.txt ...  

The program could function as a standalone application, but also as a command line version (with a possibility to append it to the right-click menu) which would surely enhance its functionality.

I know some free programs which can do the splitting pretty well, like TextSplit on sourceforge.net (yields very good results and allows selection of text encoding, but has no console version, processes one file at a time only, and its settings cannot be saved) or TextFileSplitter by SystemWidgets (can split multiple files in a directory, but has problems with the correct encoding of the resultant chunks).
So, what I'd be grateful for is a program which could do the text splitting the right way and would also save me trouble renaming and sorting the output files.

I hope this is a feasible task and I am looking forward to hearing from you, ingenious minds.

Best regards,
nagelfar

Pages: [1]