on 12-04-2007 11:37 AM
Hi guys,
I am trying to read a txt file from my local disk.But the following code snippet is not working.
IWDInputStream res;
res=WDResourceFactory.createInputStream(new FileInputStream("C:
Documents and Settings
thiruashwin
Desktop
sample.txt"));
Any suggestion?
Hi Thirumurugan A ,
IWDInputStream res;
res=WDResourceFactory.createInputStream(new FileInputStream("C:
Documents and Settings
thiruashwin
Desktop
sample.txt"));
mean that your J2EE engine will search for the sample.txt in your J2EE AS side on C:
Documents and Settings
thiruashwin
Desktop
so it is important to tell us more about the J2EE engine side
Regards,
Ng Jia Jun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Which Exception you are gettin.. ?
If it is FileNotFoundException, and you are using local server make sure that
the file exists in the specified path.
if you are using remote server , place the file "sample.txt" in the path specified
Ragards
LakshmiNarayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where is your J2EE engine located? on your local PC?
regards
Stefanie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.