|
Guys,
When making a java application
if i need to read a file say Hello.txt from a .java file known as Read.java i
donot need to specify a path if both the files are in the same
directory.
Well i'm facing an amazing problem when i try to do
something similar using jsp.
I'm importing a .class file say Hi.class into my
jsp page say Hello.jsp & i hava file named Hello.txt, the contents of which
i read in the Hello.class file.
But as in the case of a java application i'm not
specifying the path of the Hello.txt file in the Hello.class file because both
of them are placed in the same directory instead i'm just calling it in the
FileInputStream Constructor as "Hello.txt".
But i'm getting a
FileNotFoundException.
Please explain to me why is it so & what way
can i call the file Hello.txt from the Hello.class file.
Have a nice day.
With regards, Sachin S. Khanna. |
- Re: Amazing Sachin S. Khanna
- Re: Amazing Robert McCarter
- Re: Amazing Paolo Miotti
- Re: Amazing Sachin S. Khanna
