cancel
Showing results for 
Search instead for 
Did you mean: 

Write String to a local File

Former Member
0 Kudos

Hi,

i am trying to create a log file for my program. But i am not able to write a string to my local file. I deploy my WD to a remote server.

File location is: src->mimes->components->com.sap.company

myCode:


	Writer file = new FileWriter("log.txt");
	file.write("TEST");
	file.flush();
	file.close();

regards,

sharam

Accepted Solutions (1)

Accepted Solutions (1)

luciano_leitedasilva
Contributor
0 Kudos

Hi Sharam,

1) Read the WebLog /people/sap.user72/blog/2004/11/10/log-configuration-for-a-web-dynpro-application

2) Check whether the file log-configuration.xml is in the right directory within the deployed ear file. It must be stored in the meta-inf directory. There was a bug in the IDE which stored the file in the wrong directory. In case it is not correctly stored you must manually move it to the meta-inf directory.

Regards,

Luciano

Answers (0)