An easy way to load the whole file: <util:loadText var="fileContent" file="${filename}"/>
To read line by line: <j:new var="aFileReader" className="java.io.FileReader"> <j:arg type="java.lang.String" value="${file.toString()}"/> </j:new> <j:new var="aBufferedReader" className="java.io.BufferedReader"> <j:arg type="java.io.FileReader" value="${aFileReader}"/> </j:new> <j:while test="${'true'}"> <j:set var="aLine" value="${aBufferedReader.readLine()}"/> <j:if test="${aLine == null}"> <j:break/> </j:if> </j:while> -----Original Message----- From: NATARAJAN Sasi Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, June 23, 2005 7:17 AM To: Maven Users List Subject: File Reading from maven Hai All I would like read a file content and stored to maven variable (v 1.0.2) Thanks in Advance Sasikumar Natarajan Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email.