Java - Writing file location to Properties file

后端 未结 3 642
谎友^
谎友^ 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:47

    Backslash \ is an escape character that is silently dropped in not followed by another \

    Colon : is a special character that must by escaped with \.

    Check docs at

    http://commons.apache.org/proper/commons-configuration/userguide/howto_properties.html

提交回复
热议问题