reset password
Author Message
cysun
Posts: 2935
Posted 17:54 May 06, 2013 |

Suppose in the DrivingTest bean (of Lab 2 and 3) you use the following code to read the file DrivingTest.txt:

Scanner in = new Scanner( new File("DrivingTest.txt") );

...

Where on CS3 server should you upload the DrivingTest.txt file (assuming your account name is cs320stu31)?

The answer should be the full path of the file (like /tmp/DrivingTest.txt), and the first correct answer will get one extra point in their class grade.

jkiyomu
Posts: 27
Posted 18:02 May 06, 2013 |

you should install it in your package folder with all the class files.

cysun
Posts: 2935
Posted 18:03 May 06, 2013 |
jkiyomu wrote:

you should install it in your package folder with all the class files.

Like I said, you have to give the exact path. I don't want to guess what you mean by "package folder".

jariwalayash
Posts: 1
Posted 18:20 May 06, 2013 |

The file should be in the Web Content folder. So you can use path as "DrivingTest.txt" to run on cs3 server.