3 Replies Latest reply: Mar 13, 2008 3:22 AM by rahul_akkina RSS

    How to Aoid \ charcters in the stored properties file

    user3123886
      I m using the code to store into .properties files but it adds \ before : How can i avoid this
      Properties prop = new Properties();
      prop.setProperty("URL", "jdbc:oracle:thin:@:host:port:schema");
      properties.store(new FileOutputStream(db.properties), null);
      But my db.properties files is below
      jdbc\:oracle\:thin\:@\:host\:port\:schema
      I want to avoid '\' while storing.