creating file object
File file = new File("C:\\MyFile.txt");
check a sample pgm
http://www.java-tips.org/java-se-tip...e-in-java.html
jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.