02.05.2016, 12:16
It prints out both names just fine for me. This is not an ideal approach though to be honest: If the second value in your file is higher than the first one, your top_winrate_2 will just stay 0 and "". I would probably read everything in a table and an array, use .sort() on the array and then use the sorted values as key for the table. This way you could be sure that it doesn't depend on your file whether or not you will get the correct values, and also you could read out more than just 2 values.