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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dgharib
    New Member
    • Mar 2014
    • 2

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

    Greetings,

    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..
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    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.

    Comment

    • dgharib
      New Member
      • Mar 2014
      • 2

      #3
      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...

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        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.

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          We don't have a forum for notepad++ nor it's scripting language so I will leave the thread here.

          Comment

          Working...