I am running tomcat locally and I'm trying to read a txt file. The only time it works is if I specify the path as "c:\java\commonwords.txt" if I specify a relative path like "commonwords.txt it tries to find the file at windows\system32
how the heck do i read this file? I have been coverting it to a URI and tried to use the getPath functions to get an absolute path and no luck.
Does anyone know what I can do? I'm desperate.
how the heck do i read this file? I have been coverting it to a URI and tried to use the getPath functions to get an absolute path and no luck.
Does anyone know what I can do? I'm desperate.