PDA

View Full Version : Basic script question


vektor
10-16-2007, 10:01 AM
Hello!
I am making a little script which is reading a text file
and put each line in a variable
my problem is that i want to compare the variables with each other to find the lowest value

Please help me :)

Don Ruggieri
10-17-2007, 01:16 PM
In the end, what exactly are you after.

If you are trying to find the lowest value, that is one problem.

From the looks of your code, you are actually trying to sort the data from lowest to highest, that is a different problem.

Do you need to write it out to a file, or is it sufficient to display the lowest value? Do you need to know what position it was in when you read it (relative to the other data)?