T
Tim
Hi,
I need to execute a perl script from within a java program. The
perl script reads a text file, formats it, then writes it into another
text file. My code for executing the perl script doesn't work at all:
try
{
Process p = Runtime.getRuntime().exec("C:\\perl\\transReader.pl");
}
catch(IOException e)
{
System.out.println(e);
}
When this is run, no errors are thrown but the text file that is
supposed to be written to by the perl script remains empty. If anyone
can help me I'd be extremely grateful.
Thanks, Hill.
I need to execute a perl script from within a java program. The
perl script reads a text file, formats it, then writes it into another
text file. My code for executing the perl script doesn't work at all:
try
{
Process p = Runtime.getRuntime().exec("C:\\perl\\transReader.pl");
}
catch(IOException e)
{
System.out.println(e);
}
When this is run, no errors are thrown but the text file that is
supposed to be written to by the perl script remains empty. If anyone
can help me I'd be extremely grateful.
Thanks, Hill.