ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Sadangi <msada...@manh.com>
Subject how to use java.io.File inside script
Date Tue, 20 May 2003 15:27:58 GMT
I am trying to read from a file and checking for a particular string inside
a line .
if the string exist then writing the line to the output file.
<script language="javascript"> <![CDATA[
        importClass(java.io.File);      
        importClass(java.io.FileWriter);      
        in = new File("sample.txt");
        outFile=new FileWriter("write1.txt");

what are the methods available for io operation?
I tried readLine and writeLine -- it does not work.


thanks, 
manoj
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
View raw message