Hi I am using DOM to make an xml tree and writing it to a file.
I have declared the fileName:
String fileName = "/tmp/memberFile";
to save it to the file i have done the following:
File membersXMLFile = new File(fileName);
FileWriter writer;
if (!(membersXMLFile.exists()))
{
writer = new FileWriter(membersXMLFile);
}
else //file does exist
{
writer = new FileWriter(membersXMLFile, true);
}
if file does not exist FileWriter writes to file. else if it does exist, file writer writes to the file by appended to the file.
However, i am still getting a
TOMCAT Error. As this is
java code. I am confused on what is wrong with my code.
Please Help
Sana
[ October 15, 2004: Message edited by: Sana Ali ]