Click to See Complete Forum and Search --> : How to resize/remargin a text file???? !!!!!! HElp!!!


Honda
11-18-2000, 10:35 AM
I am able to use filestreams to open a file and save the whole text from file1
to a user-named-input file2.

Question is how do I remargin the text so that lets say one line can onlt
contain 40 spaces, it will fill up the whole line with words and as many
spaces as possible. If the words go past 40, it would go to the next line.

the first line of the first text file to be copied over and modified to the
second file has a number specifying what the margin is.

I need help fast!!

Thanks

Paul Clapham
11-19-2000, 07:56 PM
From the "Design UI" point of view, if you want to count characters like
this, you need to use a fixed-width font such as Courier.
Proportional-width fonts will make your lines ragged because a "W" is wider
than an "I".

Honda <hundasport@yahoo.com> wrote in message
news:3a1693ab$1@news.devx.com...
>
> I am able to use filestreams to open a file and save the whole text from
file1
> to a user-named-input file2.
>
> Question is how do I remargin the text so that lets say one line can onlt
> contain 40 spaces, it will fill up the whole line with words and as many
> spaces as possible. If the words go past 40, it would go to the next
line.
>
> the first line of the first text file to be copied over and modified to
the
> second file has a number specifying what the margin is.
>
> I need help fast!!
>
> Thanks