cancel
Showing results for 
Search instead for 
Did you mean: 

what is syntax to give filestructure for fileReader();

Former Member
0 Kudos

HI,

FileReader f =new FileReader("D:
New Folder
file.txt");

i'm getting the exception java.io.FileNotFoundException: D:\New Folder\file.txt (The system cannot find the path specified)

But it is working in core java execution..

what is syntax to give filestructure for fileReader();

please help in this.

Regards,SenthilNathan.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You are getting this exception because the file is being searched in the server when it is deployed(Using Web Dynpro).But when you are trying it in core java it searches for the file in the local system.

Regards,

Vijith

Former Member
0 Kudos

Remember that your Web Dynpro runs on the server, so it tries to read that file from the server.

Former Member
0 Kudos

Hi Senthil,

Is the "D" drive mapped from a network drive?

From webdynpro application if you are trying to access a file in the network then you will get the FileNotFound exception. (Eventhough the network path is mapped).

Regards,

Santhosh.C