pro_java thread: How to read file which locates different directionary
I have a question about read file.For example,I have a class file,it locates: ......\login\WEB-INF\classes\myclass.class,I have another text file,it locates .....\login\servlets\error.txt. The file "myclass.class" need read data from the file "error.txt",I want to know how to use statements to realize it? Any idea will be appreciated! Edward!
|





