Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to read .dat files that are hidden?

807601Jan 30 2008 — edited Feb 5 2008
Is it possible to read .dat files that are set to hidden? 'cause what i did was i created a .dat file and set its attributes to hidden and my Read file code cannot read hidden files.

here's my Read file code:

Scanner read=new Scanner(FileReader("C:\password.dat"));

and another thing, how do you Write a .dat file that is hidden too? 'cause my password.dat file needs to be updated.

here's my Write file code:

PrintWriter write=new PrintWriter("C:\password.dat");

thank for the help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2008
Added on Jan 30 2008
3 comments
483 views