Thanks a lot binoj.Just got a another doubt??I am really new to nant.So I have a value in this file.txt which is read as seen from ur code above,now i want to compare it with a fixed value and look for validation.If this value is greater or lesser i wann do some checks.Can u plz help??
–
MaddyApr 10 '09 at 12:45

<if test="${file.content=='someValue'}"> should be it
–
Binoj AntonyApr 10 '09 at 12:54

Thanks for the example. It works great! I will be writing to a file from a database and then using ant to save this value into a variable to use in an exec command.
–
PHPGuruSep 5 '13 at 19:28