cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a file i mimes/ components folder

Former Member
0 Kudos

Hi,

my requirement is to create a file in the mimes/components/.... folder.

my code follows in a view's controller DoInit().

String path;

File file = new File (path);

What should be the path to put the created file in the mimes folder.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

temp
webdynpro
web
local
<ProjectName>
Components
<Component Package>
<File Name>

Is the path, but i am not sure whether we can create a file in that folder.

regards,

Mahesh

Former Member
0 Kudos

Thanks Mahesh,

I will check with this.

Former Member
0 Kudos

Thanks Mahesh,

Properly working... thanks

Answers (1)

Answers (1)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi Abhimanyu,

Do the following Steps to add file under Src/Pacages/Dir

1. Add a new directory Dir in the src/packages/

Choose the entry New ® Other in the context menu. A dialog box appears. Select the entry Java (on the left) – Package (on the right).

Choose Next and enter the package name in the following dialog box. Choose Finish.

2 Save the files

Choose the entry New ® Other in the context menu. A dialog box appears. Select the entry Simple (on the left) – File (on the right).

Choose Next and enter a file name in the following dialog box - for example,File1.properties. Choose Finish.

Regards,

Vijayakhanna Raman

Former Member
0 Kudos

Hi Vijayakhanna Raman,

Thanks for your help.Actually I want to create the file dynamically at runtime. To create a file i need to code the path of the file in the program. What path should i specify to get the file in mimes at runtime.