title: The filename, directory name, or volume label syntax is incorrect - how to specify file path in properties file
body: <p>I am reading properties file to get a file path as below.</p>
  
  <pre><code>    String result = "";
      InputStream inputStream = null;
      try {
          Properties prop = new Properties();
          String propFileName = "config.properties";
  
          inputStream = GetPropertyValues.class.getClassLoader().getResourceAsStream(propFileName);
  
          if (inputStream != null) {
              prop.load(inputStream);
          } else {
              throw new FileNotFoundException("property file '" + propFileName + "' not found in the classpath");
          }
  </code></pre>
  
  <p>The properties file has the path specified like below.</p>
  
  <pre><code>configSettingsFilePath = C:\\\\ConfigSetting.xml
  </code></pre>
  
  <p>Now I get this below exception when I run my code saying file is not found. </p>
  
  <pre><code>Creating instance of bean 'configSettingHelper'
  </code></pre>
  
  <p>configSettingsFilePath = C:\ConfigSetting.xml
  2017-09-18 14:47:00 DEBUG ConfigSettingHelper:42 - ConfigSettingHelper ::  ConfigSetting File:configSettingsFilePath = C:\ConfigSetting.xml
  javax.xml.bind.UnmarshalException
   - with linked exception:
  [java.io.FileNotFoundException: C:\Java\eclipse\eclipse\configSettingsFilePath = C:\ConfigSetting.xml (The filename, directory name, or volume label syntax is incorrect)]
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:246)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:214)
      at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
      at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:162)
      at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:171)
      at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:189)</p>
  
  <p>Instead of reading the path from properties file, if I directly use "C:\ConfigSetting.xml" in the code, it reads the file.</p>
  
  <p>Can you please suggest what I should use in the properties file to specify the path?</p>