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 14:17

>>13
Oh yeah, the direction of the (forward/back) slash is OS dependent.
Wait, really? You mean that Java doesn't do what good old C does? (Which is not being an anus and accepting the `/' separator on all systems.)

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