Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Reading Files in Java

Name: Anonymous 2010-11-27 12:30

Whenever I read a file in java I always have to put the text file in some arbitrary folder. How can I make my program read/writes files from the same folder that its in.

I want this to work so that even if its moved to another folder or computer, it still works.

Name: Anonymous 2010-11-27 13:54

>>7
Yes, I am. Please enlighten me.

I tried ./SetupFileInfo.txt and ../SetupFileInfo.txt and neither worked.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List