Author | Message |
---|---|
rpuas
Posts: 29
|
Posted 20:45 Feb 10, 2012 |
been trying to get TestBean.java to read the text file using the Absolute Path "\DrivingTest.txt" for the last 4 hours, but won't work!!!! I am able to view the file using the URL in a browser... http://cs3.calstatela.edu:8080/cs320stu33/DrivingTest.txt but when I run Test.jsp, I get an error.
Works fine in eclipse, but can't get it to work on CS3!!! |
xliu15
Posts: 24
|
Posted 21:21 Feb 10, 2012 |
use absolute path "\tmp\DrivingTest.txt" |
rpuas
Posts: 29
|
Posted 21:23 Feb 10, 2012 |
tried that...same problem. Anyone else having trouble reading the text file on cs3 server? |
M_Hsu
Posts: 19
|
Posted 13:55 Feb 11, 2012 |
File file = new File("/tmp/DrivingTest.txt"); then use BufferedReader to read it. |