Thanks for replying. I did use the absolute path "s:\\test.txt" . If I put the file on my local drive and I put "C:\test.txt" in FileReader(), it works. If I put the file to S drive which is a mapped network drive and put "S:\test.txt" in FileReader(), it does not work.
There are something related to Tomcat login user permission. Do you think so?