cancel
Showing results for 
Search instead for 
Did you mean: 

Adding and reading a Textfile

Former Member
0 Kudos

Hi everybody!

I want to add a textfile to my webdynpro project that should be read within wdDoInit(). I read the previous posts but haven't found an easy approach. Where do I have to put it (META-INF?) and how do i access it directly from the wdDoInit of my View (with a FileReader) ?

Regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Michael,

Follow this <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9e/093aeec9b8634789fa07b3301f1a44/frameset.htm">tutorial</a>

Bala

Former Member
0 Kudos

Hi Bala,

Thanks for your answer. I tried following this, but it only seems to work for a .properties file. I have a different given file (.ini) and would like to have a FileReader to access it. Is there another way to access it ? I think there should be a way, because reading the SapIcons from filesystem is possible aswell.

Best regards,

Michael

Former Member
0 Kudos

I changed my file format to be a .properties file. as you suggested, works fine now. thanks a lot !

Answers (0)