Hi,
I'm using Eclipse 3.1 and have J2SDK 5.0 installed on my computer.
My question is:
When using the code:
import java.io.File;
String fileName = "c:/x/anyfile.txt";
File f = new File(fileName);
Instead of just creating an instance of File using the name I provided, the code just deletes it entirely from the disc ... any bug, or is there anything obvious I'm missing?
Thanks
I'm using Eclipse 3.1 and have J2SDK 5.0 installed on my computer.
My question is:
When using the code:
import java.io.File;
String fileName = "c:/x/anyfile.txt";
File f = new File(fileName);
Instead of just creating an instance of File using the name I provided, the code just deletes it entirely from the disc ... any bug, or is there anything obvious I'm missing?
Thanks
