0

Reading file with relative Path?

asked 2008-10-05 16:08:55 +0800

Shakerinezhad gravatar image Shakerinezhad
12

Reading file with relative Path?

I have written code with java to read file but I couldn't read file with relative Path.(ZScript)
However, I have no problem with absolute path?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-10-06 00:12:58 +0800

flyworld gravatar image flyworld
155 3

in my opinion, if you wanna use relative path, you should print out your path and check it correct.
for example :
i use eclipse to develop ZK, and it is in "D:\eclipse\"
if i use

File file = new File("/");

it will show files in D:\*
if i use
File file = new File(".");

it will show files in D:\eclipse\*

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-10-05 16:08:55 +0800

Seen: 167 times

Last updated: Oct 06 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More