Java - Writing file location to Properties file

后端 未结 3 599
谎友^
谎友^ 2021-01-23 04:17

I\'m writing the FILEPATH parameter into the properties file like below..

String newFilePath = txtFilepath.getText();
Properties prop = new Prop         


        
3条回答
  •  伪装坚强ぢ
    2021-01-23 04:56

    Just call prop.get("FILEPATH"). You will see that you get back "D:\filelog.txt", just as you put it in.

提交回复
热议问题