Results 1 to 4 of 4

Thread: rearrange the data

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    120

    rearrange the data

    i need to rearrange the data in file "data.txt"

    i want the data value arrange from small to big.

    from example:
    original:
    3.85663000 100.81888000 174=0
    3.85625000 100.81778000 174=0
    3.85519000 100.80883000 174=0

    after arrange:
    3.85519000 100.80883000 174=0
    3.85625000 100.81778000 174=0
    3.85663000 100.81888000 174=0

  2. #2
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: rearrange the data

    If you know how to sort then,
    you can use a 2nd file to hold the soted data temprarly and from there you can write back to the origanal file.
    Last edited by Fazi; Mar 8th, 2007 at 01:57 PM. Reason: addition of text

  3. #3
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: rearrange the data

    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: rearrange the data

    Quote Originally Posted by Fazi
    If you know how to sort then,
    you can use a 2nd file to hold the soted data temprarly and from there you can write back to the origanal file.
    Just write the sorted file, Kill the original file and Name the new file to the original name.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width