How to increase length of a text file by adding 4065009 spaces using Textpad or Notepad++?

954 Views Asked by At

I need to increase length of 2,00,000 rows by adding trailing spaces of around 4065009 using textpad or notepad++ . How is this possible ? I have tried various options available in Notepad++ like convert tab to space etc it isn't working .

1

There are 1 best solutions below

2
On

You could try using a regular expression to replace all newlines with many spaces and a newline. Then use a rectangular mouse selection to cut off everything to the right of the width you want. Not sure if notepad++ copes so well with large rectangular selections though, you might have to do it in several smaller chunks.

Just tried this and it does appear to work. Select "Regular Expressions" in the replace dialog. Replace $ with lots of spaces. Then use left-ALT+ mouse drag to select all the extra spaces you want to remove on the end of the lines. Then hit delete.