ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Sadangi <msada...@manh.com>
Subject Problem with deleting a file inside javascript
Date Wed, 04 Jun 2003 14:02:49 GMT
How can I delete a file inside javascript?
This is throwing error in the line f.delete() "missing name after .
operator"
<script language="javascript"> <![CDATA[ 
importClass(java.io.File);
        f = File("test.txt");
        fsize = f.length();
       if(fsize <= 15)
        {
          f.delete();      
        }  
]]> </script>

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