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()

