In perl we use to read data line by ilne from a file. How to do the same using ant script.
You can do that using the loadfile task in combination with the for task from ant-contrib (you will have to download and install ant-contrib).
@{line}