|
-
Mar 8th, 2007, 01:26 PM
#1
Thread Starter
Lively Member
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
-
Mar 8th, 2007, 01:56 PM
#2
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
-
Mar 8th, 2007, 02:12 PM
#3
-
Mar 8th, 2007, 02:42 PM
#4
Re: rearrange the data
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|