java - new File(path, filename) 的path路径,是什么路径?
PHP中文网
PHP中文网 2017-04-18 10:14:57
0
2
502

path为“D:temptest”时,拿不到文件,但是为“D:\temptest”时可以?
关于路径的知识可以讲详细一些

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
大家讲道理

is the path symbol. You can open a file and look at its path. This is how it is represented. This is specified by the operating system. If you have used linux, you will find that it uses /

Peter_Zhu

I don’t know which version of Java you are using. In my local 1.7, the two writing methods are the same and both can get the file.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!