adding a crlf
- From: tmw <toddmwright@xxxxxxxxx>
- Date: Thu, 28 Feb 2008 11:09:55 -0800 (PST)
Trying to format a file by adding a crlf at every Nth position in a
file. Not sure what is the best way to do this and looking for ideas
of how to do it. I am currently running a process in ANT to handle
the file and was hoping that I could achieve this by using an already
existing ANT task ( replace?, replaceregexp?)
example of data in file:
some text in file that goes like this and keeps going with no returns
in it but i want to add some to reformat the file.
what i would want the output to be after processing - by adding a
crlf after every 10th character in the file:
some text
in file t
hat goes l
ike this a
nd keeps g
oing with
no return
s in it bu
t i want t
o add some
to reform
at the fil
e.
=====================
thanks
tmw
.
- Follow-Ups:
- Re: adding a crlf
- From: Roedy Green
- Re: adding a crlf
- From: Stanimir Stamenkov
- Re: adding a crlf
- From: Daniele Futtorovic
- Re: adding a crlf
- Prev by Date: Re: hasNext?
- Next by Date: Re: Drawing Icons
- Previous by thread: Process instances in JBI BPEL module
- Next by thread: Re: adding a crlf
- Index(es):