i'm getting a peculiar error in IO. when i write a simple class with a file object invoking the "length()", it returns the appropriate file size in long. However, when i run the same in a helper class in a j2ee-struts framework, the file size retruns zero (0 bytes)!!! Any idea?
posted 13 years ago
File.length() returns 0 if the file doesn't exist. You probably have a different opinion about where the file is than your j2ee server.