This discussion is archived
1 2 Previous Next 16 Replies Latest reply: Mar 26, 2008 11:38 AM by 807601 RSS

read file and output new file with tabing each new paragraph. please help

807601 Newbie
Currently Being Moderated
Hi,

I need help with this. I'm really stuck.

I need code for doing the following things.

I have a file with text in it and I need that file to be read and also need to tab each new paragraph.
This is how it should look like.

inFile
lasjflasjf;lahsglhas;lghsaf
salfsaj;lfja;sljflasd;fljasdfj
safasdfasfasfasfsfsfasfasf
afasfasfasdfsfasdfasfasfsd

asfasdfasdfsadfasdfasdfas
asfasdfasdfsafasgawtwetet
wtwrterggsagsdhhfghdghh
dfgsdgsdfgdsfgdsfgsdfgdfg

dsgsdfgsdfgsdgdsfgdsgdfg
sdgdsfgarerhtsrkjadfg;lgjdg
dsflgjs;dlfgjsdfjgldsjfgjdfldg

outFile
<TAB>asfasdfasfasdfasdfa
sfsafasfasfalsdfjalsjdfljasdf
sdfaslfjlasjdfljasdfljasldjfskd

<TAB> lasflajs;fljasldfjasldj
asf;alskjfljasdlfjasdklfjsdjfa
asfalsjdfljsdfljasljlasfjlsjdsdf

<TAB>lfjlasjflaasldjflasdf
sdfkjsdjfkjdkfjkjdkfjdjfdkjfdjf
dkjfkdfdkjfkdkfkdjfkjkdjfkjdf



Please help. Thank you.

Edited by: unixsigma on Mar 26, 2008 1:30 AM

Edited by: unixsigma on Mar 26, 2008 1:31 AM
1 2 Previous Next