PDA

Click to See Complete Forum and Search --> : [RESOLVED] Accessing files within folders


Levells
May 24th, 2010, 03:44 PM
I'm using to java to create a game. I'm planning on accessing files in several different folders. Unfortunately, I can't seem to figure out how I'll be able to do so. I can't even print the '\' symbol without an unclosed string literal error, so I don't know how I'd be able to access those files on a Windows computer.

ComputerJy
May 25th, 2010, 07:03 PM
try "\\" intead of a single "\" these are called escaped literal strings, look them up