-
How to resize/remargin a text file???? !!!!!! HElp!!!
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
-
Re: How to resize/remargin a text file???? !!!!!! HElp!!!
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks