Thanks For the reply . yes you are right. This code will run on JDK 1.4 which allow File object as argument, but here i am writing the code from the book IVOR Horton which is confusing me.
String filename = "myFile.txt";
File aFile = new File(filename);
try
{
aFile.createNewFile();
FileOutputStream file1 = new FileOutputStream(aFile, true);
}
catch(IOException e)
{
System.out.println(e);
}
This is the code which is written in the ivor Horton's book by name Beginning
JAVA 2 (JDK 1.3 Edition). please answer me. hope your answers will help me and make be able to understand this code. May be this is the error of the book
Muddassir Sayeed
[ July 11, 2002: Message edited by: Muddassir Sayeed ]