Caminman
asked on
Writing in a file
Hi there!
I want a system that writes down 5 names and a number to a file.
Here is an example:
I type in these in a textbox: (the numbers are random, which I DON'T type myself)
Mike (45)
John (2)
Susan (15)
Kim (8)
Lisa (293)
And when I open the file in a textbox, I want to get the following result:
(The numbers ARE visible)
Lisa 293
Mike 45
Susan 15
Kim 8
John 2
As you can see, the name that got the highest number, comes up first etc.
Thank you!
//Caminman
I want a system that writes down 5 names and a number to a file.
Here is an example:
I type in these in a textbox: (the numbers are random, which I DON'T type myself)
Mike (45)
John (2)
Susan (15)
Kim (8)
Lisa (293)
And when I open the file in a textbox, I want to get the following result:
(The numbers ARE visible)
Lisa 293
Mike 45
Susan 15
Kim 8
John 2
As you can see, the name that got the highest number, comes up first etc.
Thank you!
//Caminman
How large should the random numbers be ?
dose this have to be a file or are you simply trying to put some name sin a random order,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
When you open the file to display your sorted names. Do you have to use a text box? If so load your name, value into a ReDimensioned array, then bubble sort. Then display your sorted selection to your textbox.
ASKER
Hi, and thank you for answering so quickly!
My description wasn't the best, but anyhow, the function of the codes were excellent, even if i have to modify them a bit.
Once again, Thank you! :)
I'll return if I have further problems!
//Caminman
My description wasn't the best, but anyhow, the function of the codes were excellent, even if i have to modify them a bit.
Once again, Thank you! :)
I'll return if I have further problems!
//Caminman