String Filelocation = "c:\\temp\\hello.txt";
//get the size of the file
long length = Filelocation.length();
Get the size of what? File? Looks more like a String to me. A 16 character length string to be exact. Try this instead:
long length = is.available();
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51