java - Can't open file even though it exists at the given directory -
import java.io.*; file thisun = new file("c:\\users\\ch\\documents\\dictionary.txt"); system.out.println(thisun.canread());
for reason can't read file though exist @ given directory : / i'm sure it's simple, won't see it. i've tried doing different directories.
also, if want open file in same folder .java file. know in c++ defaults wherever .cpp file located don't know equivalent java.
Comments
Post a Comment