i don't know why don't read this texet file
Code java:public static void main(String[] args) { File f = new File("Ahmed.txt"); PrintWriter PW = new PrintWriter(f);
Printable View
i don't know why don't read this texet file
Code java:public static void main(String[] args) { File f = new File("Ahmed.txt"); PrintWriter PW = new PrintWriter(f);
what is this code supposed to do? I suggest you to post the whole code with some more specific question...
i begin to write a code which read the file Ahmed.text and it didn't see
Can you post the code that reads from the file? What you have posted in post#1 does not read anything.
Read the API doc for the PrintWriter class to see what that class does.
Java Platform SE 7