Buffered Writter issues
Posted: Fri Jan 18, 2008 11:20 am
I am trying to print out a file as my code executes. I am running tomcat 5.5.23 on my desktop and on the mainframe it is 5.0.28.
When i run the application from my desktop it works. From teh mainframe the program works but does not create any output. Do you know if the older version is too dated to know the commands.
When i run the application from my desktop it works. From teh mainframe the program works but does not create any output. Do you know if the older version is too dated to know the commands.
Code: Select all
try {
// Write to temporary file
BufferedWriter out = new FileFactory.BufferedWriter(new FileWriter("C:\\UploaderErrors.txt"));
out.write( "Row" + (j+1) + " " + getError_Msg() + " - Value " + strCell_Contents );
out.newLine();
}
}
if (j == getTheLastRow())
{
Runtime.getRuntime().exec("cmd.exe /C \"C:\\UploaderErrors.txt\"");
}
}//end for each row