New
#11
Drag all text files to one directory eg c:\text
Open command prompt
cd \text
copy *.txt text.dat
exit
Then load text.dat into notepad or word etc. and print file to pdf.
I am not competent enough to understand the codes but somewhere I think you want me to first combine all text files into a single Text file. Sir, I already have a single Text file which I have splitted into 50000 text files because these 50000 files are one page letters which I need to print randomly as per my search criteria. In notepad I can not select and print the required letter and I have to first copy the required letter to another notepad to finally print that particular letter. In a combined pdf, I can select the page to print. Hope I am able to explain to you. Thanks
Thanks for the details but somewhere I think you want me to first combine all text files into a single Text file. Sir, I already have a single Text file which I have splitted into 50000 text files because these 50000 files are one page letters which I need to print randomly as per my search criteria. In notepad I can not select and print the required letter and I have to first copy the required letter to another notepad to finally print that particular letter. In a combined pdf, I can select the page to print. Hope I am able to explain to you. Thanks
So your problem is not really how to make a combined pdf, but how to print an individual page out of the 50000. Neither Notepad or Wordpad support page breaks, which is what you'd need to be able to have each letter on a single page. A plain text document is not really suitable for what you want to achieve.
If you have Microsoft Word you could insert a page break between each letter. If you do not have Word, then Libre Office (or Open Office) is free and includes Writer, their equivalent of Word.
Yes, you are right. I have office 2016. Can you please guide how to open this single text file of 50000 letters with MS world and insert page break between each letter. Though each letter can come on a single page but number of lines in each letter can differ. But one thing is there that all letters start with a specific world and also ends with another specific word. Thanks
To open in Word, right-click on the text file and choose 'Open with..' then select Word.
In Word, at the end of each of your letters insert a Page Break. I don't have Word 2016, but in Word 2010 it's on the 'Insert' tab. You'll then have to save it in a format that supports page breaks, .rtf, .docx .odt or even .pdf will do.
Only if each letter ends (or starts) with a unique word or phrase, such as your signature or name. Then you could use 'Replace all' in Word to replace the phrase with the same phrase, but with a manual page break added. 'Find and Replace' has a 'Special' button that allows you to put a Page Break in the replacement string.
If there is such a word, but it occurs elsewhere too, you can still use 'Find and Replace', but you'd have to click 'Replace' for each page break you want, and 'Find next' when the word occurs in the middle of a letter.