It is recommended that you not see other answers and try it out yourself. Write a program using only the File class that creates a file on the hard disk. Do not use any of the stream classes or Writer classes. what happens when you try the code below.
Have fun trying.. ------------------ Regds. Rahul P. Mahindrakar
[This message has been edited by Rahul Mahindrakar (edited August 30, 2000).]
I created this thread so that one could know that creating an Object of File does not create a physical file on the hard disk. This can be done only by invoking the method createNewFile() of File class. Thus after the code below is executed a file by the name "New" exists on the Hard disk in the same directory in which the program was run.