i've tested it and it worked properly.
i used this applicationContext.xml.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springfr
xmlns:xsi="http://www.w3.o
xmlns:p="http://www.spring
xmlns:context="http://www.
xmlns:jee="http://www.spri
xmlns:tx="http://www.sprin
xsi:schemaLocation="
http://www.springframework
http://www.springframework
http://www.springframework
http://www.springframework
<bean name="FileReader" class="java.io.FileReader"
<constructor-arg index="0">
<value>c:/temp/test.txt</v
</constructor-arg>
</bean>
</beans>
this is the output:
Cp1252
when i changed the path to the file to a non-existing file i got this Exception:
Exception in thread "main" org.springframework.beans.
below is the code of my testapp
Main Topics
Browse All Topics





by: sunray_2003Posted on 2008-01-30 at 13:53:31ID: 20781793
You can verify whether the file exists in the location c:/rad/translator/src/reso urces/samp ledata/mem ber.lst mentioned in your configuration file. Btw, is it member.lst or txt? Also you can escape character to the file pah C:\\rad\\...