473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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..
Mar 5 '14 #1
4 1954
Rabbit
12,516 Expert Mod 8TB
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
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
Nepomuk
3,112 Expert 2GB
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
Rabbit
12,516 Expert Mod 8TB
We don't have a forum for notepad++ nor it's scripting language so I will leave the thread here.
Mar 6 '14 #5

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

Similar topics

1
by: dmiller23462 | last post by:
Hi again guys.... This is my first source of help, by far the best ASP intellectual collective....Thanks in advance for any assistance...Anyway.... The forms I'm still working on (finishing...
1
by: Astra | last post by:
Hi All Could you please let me know how my ASP page can insert 1 row of data containing line breaks into a MySQL DB. To explain, I'm using ASP Classic > MyODBC 3.5x (Win) > MySQL 4 (Win) and...
5
by: David Blickstein | last post by:
I'm finding it difficult to determine when/where XSLT generates line breaks when generating a text file <xsl:output method="text" media-type="text/plain"/> And... I'm getting thoroughly...
3
by: les | last post by:
I am creating XML from SQL2000 using a vb.net page, then posting it to a remote server as a string. The remote server requires that the xml contain no line breaks, but there are some ntext...
4
by: intl04 | last post by:
I have a memo field that is included in some Access reports I created. Is there some way for the memo field to display nicely formatted text, with line breaks between paragraphs? Or is it necessary...
7
by: David Meier | last post by:
Hi, I am new to C# and I am facing this small problem: I start a new process using cygwin and I redirect the standard output to a string variable. When I display the string variable in a list...
2
by: Mike | last post by:
I need my textbox to work more smoothly with respect to line breaks. When I have data pulled from the database into a textbox there are hard line breaks at the end of each line (by definition how...
1
by: buran | last post by:
Dear ASP.NET Programmers, I am carrying the input of a textbox via querystring. When I put the value of querstring in a label control, the line breaks are removed. The whole text is displayed as...
2
by: Brett | last post by:
I'm writing something similar to this into a text file: txtfileError.WriteLine(CurrentDateTime(1) & " Error in Sub Sub1()" & idvar & Chr(10) & Chr(13) & ex.Message) txtfileError.WriteLine() ...
20
by: alice | last post by:
I'm doing some text swapping with javascript, got it working fine, but I would like the line to have line breaks and being a beginner, I don't even know if this is possible. So I have a line like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.