Home > OS >  Linux system deployed on the Java project how to read the file path?
Linux system deployed on the Java project how to read the file path?

Time:04-21

File. The file under the properties file=D \ WWW \ text TXT Windows load this file fiel=p.g etProperty (" file ") do not have what problem, but how in the Linux read
The date \ text. TXT file? This file=? How to write a great god told

CodePudding user response:

Under the Linux directory begins with "/" the root directory, such as file my. TXT is under the root directory of a data directory, the path should be "/data/my. TXT"

CodePudding user response:

In the File. The separator to replace "/"

CodePudding user response:

It all depends on you this file is in the procedure or separately in the Linux environment, if the program or a relative path can be, if put in the Linux environment, alone must determine in what position, for example: "/usr/my/file/my. TXT"
  • Related