How to resize/remargin a text file???? !!!!!! HElp!!!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to resize/remargin a text file???? !!!!!! HElp!!!

  1. #1
    Honda Guest

    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

  2. #2
    Paul Clapham Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center