>Does anyone know how i can read from a file using javacript in Ant ?
You mean XML, right?. Here is how you copy a file in ANT.
<!-- copy run from website to project dir, if there is one. -->
<target name="copy.run" if="has.run">
<copy file="${jar.dir}/${ant.project.name}.html"
todir="${package.dir}" failonerror="false" overwrite="true" />
</target>

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.