Problem related file handling

I have stored nos as 1 2 3 4 5 6 7 8 9 in textfile sort.txt. now from java i want to find sum of these nos I did coding as follows but not getting output

try

{

int s = 0:

FileInputStream fis = null;

fis = new FileInputStream("F: sort.txt");

int m = fis.available();

byte a[ ] = new byte[ m ];

for(int i = 0 ; i < m ; i++)

{

s = s + a[ i ];

}

System.out.println("sum = "+ s);

}

catch()

[483 byte] By [a1deshmukha] at [2007-11-26 18:52:54]
# 1
You are not reading from the file and how do you want to get the sum?This is Swing Forum.Please post this in respective forum.
sruthima at 2007-7-9 6:26:56 > top of Java-index,Desktop,Core GUI APIs...
# 2
Continued here: http://forum.java.sun.com/thread.jspa?threadID=5138381
prometheuzza at 2007-7-9 6:26:56 > top of Java-index,Desktop,Core GUI APIs...