|
|
|
Относительный путь к файлу.
|
|||
|---|---|---|---|
|
#18+
Добрый день! Прошу прощения за нубский вопрос, но как-то не находится ответ, а надо срочно. Когда мы читаем из файлы, путь к которому относительный, в каких каталогах java его ищет? Может ли он находится в каталоге. куда указывает CLASSPATH? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2012, 11:23:13 |
|
||
|
Относительный путь к файлу.
|
|||
|---|---|---|---|
|
#18+
http://docs.oracle.com/javase/6/docs/api/java/io/File.html A pathname, whether abstract or in string form, may be either absolute or relative. An absolute pathname is complete in that no other information is required in order to locate the file that it denotes. A relative pathname, in contrast, must be interpreted in terms of information taken from some other pathname. By default the classes in the java.io package always resolve relative pathnames against the current user directory. This directory is named by the system property user.dir , and is typically the directory in which the Java virtual machine was invoked . ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2012, 11:47:49 |
|
||
|
|

start [/forum/topic.php?fid=59&gotonew=1&tid=2130433]: |
0ms |
get settings: |
19ms |
get forum list: |
29ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
91ms |
get topic data: |
20ms |
get first new msg: |
11ms |
get forum data: |
4ms |
get page messages: |
73ms |
get tp. blocked users: |
2ms |
| others: | 309ms |
| total: | 572ms |

| 0 / 0 |
