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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -