public class DataStreamReader {
public static void main(String a[]){

File f = null;
FileInputStream fos = null;
BufferedInputStream bos = null;
DataInputStream dos = null;

try{
f = new File("C:\\Users\\it221a27\\Desktop\\values.txt");
fos = new FileInputStream(f);
bos = new BufferedInputStream(fos);
dos = new DataInputStream(bos);

System.out.println( dos.readFloat());

}
catch(FileNotFoundException e){

}
catch(IOException e){

}
finally{
try{
dos.close();
bos.close();
fos.close();
}catch(Exception e){}
}
}
}
///the notepad contains like this



//////A@ BX D( Dt B