By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,321 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,321 IT Pros & Developers. It's quick & easy.

How to insert line breaks after a length of chars in txt file?

P: 2

I have a text file that contains about 10,000 characters as one line and I need to store as many lines each contains only 250 characters..

please advise..
Mar 5 '14 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 10K+
P: 12,369
What programming language did you want to use? I can move this thread to the correct forum. You should know though that this is not a code writing service. We like to see an attempt at the code from the poster so that we can guide them on where they went wrong.
Mar 5 '14 #2

P: 2
I guess I have to insert a Macro code inside the Notepad ++ in order to insert a line break after each number of characters...

Is this possible? How can I approach this?

Please advise...
Mar 6 '14 #3

Expert 2.5K+
P: 3,112
That sounds like a possible task, yes. I've never created a Notepad++ macro but this page shows you how to record a macro. And this article also shares information; basically you have to start recording a macro, do what you want it to do once and then stop recording. Then play it back.

The second article also links to a plugin called QuickText which apparently makes creating more complex macros easier. Again, I haven't tried it yet.
Mar 6 '14 #4

Expert Mod 10K+
P: 12,369
We don't have a forum for notepad++ nor it's scripting language so I will leave the thread here.
Mar 6 '14 #5

Post your reply

Sign in to post your reply or Sign up for a free account.