If that is the contents of your "data.in", then you are passing in a
String which cannot be parsed to a float. You need to skip a line each time because your program is catching "The first data value is" as float, when you think your getting "1066".
Its not an ideal solution, but you need to do a "inFile.readLine();" before you do your float parsing (where you would to another "indline.readLine()", and then again in the loop.
[ April 16, 2005: Message edited by: Kashif Riaz ]