Read float only reads floats that where written with write float or with knoledge of how dbpro stores floats in files. It does not work with floats that are in the file as plain text.
If you have a text file with plain text then you need to use read string.
If you text file looks like this
You would need to read it using
s as string
float1 as float : float2 as float
open to read 1,"1.txt"
read string 1,s
float1 = val(s)
read string 2,s
float2 = val(s)
close file 1
you can also use read byte to read the file a byte at a time so you don't have to format the text file the way read string expects.
Our civilization faces three great dangers. The first is destruction by a nuclear war, the second is being crippled with overpopulation and the third is the Age of Leisure.