Forum Home
Press F1
 
Thread ID: 49018 2004-09-08 03:35:00 reformatting a txt file nick01 (4767) Press F1
Post ID Timestamp Content User
270274 2004-09-08 03:35:00 Hi

I have received a heap of information that has been downloaded from an intranet. The material was sent to me as txt files.

When i open these files I find that the software that loaded the information initially into the web pages has inserted 7 spaces to the left of each row of text and at the right hand end of each line is a return.

When this is downloaded into a Word file it takes heaps of time to make it useable.

I came across a programme some time go that would strip the returns from the end of the lines of text. i can't remember where.

Thanks
nick01 (4767)
270275 2004-09-08 03:46:00 Highlight a return then choose Find & Replace. Replace All with a space. antmannz (28)
270276 2004-09-08 03:51:00 Actually, scrub that.

Highlight the return and the initial spaces (as below) in the next line, then select Edit, Replace and Replace All with a space.


eg.
This is row 1 |<-- highlight from here
to here-->|This is row 2
antmannz (28)
270277 2004-09-08 04:10:00 I am using Word 2000

I selected the return and the 7 spaces on the next line and replaced all with a space. Hit replace all and it said that it had reached the end of the file and no changes were made. Selecting next instead of replace all it couldn't see that the next line was the same.
nick01 (4767)
270278 2004-09-08 04:36:00 Use replace in the normal manner.

In Find, type in 7 spaces
In Replace, leave it blank.

You should have the options to also replace a paragraph mark (return) with nothing, just use More - Special. (assuming Word 2000 has those 2 options)
godfather (25)
270279 2004-09-08 07:32:00 ClipCase is a free utility that will do all that for you. It cleans up multi-forwarded emails and all sorts of formatting rubbish with just a few clicks.

Find it Here (www.dougworld.com)

Originally recommended in PC World. Make your cheques out to:

Billy T's Shady Enterprises (Retirement Fund).

Cheers

Billy 8-{) :)
Billy T (70)
270280 2004-09-12 07:06:00 Hi Billy

Thanks for that it works just fine.

Regards

Nick
nick01 (4767)
1