Les slash sont innorés, mais comment faire alors ?
j'ai
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 private static String PATH; protected static final String paramPath = "init.properties"; Properties properties = new Properties(); try { properties.load(new FileInputStream(paramPath)); PATH = properties.getProperty("PATH"); properties.clear(); } catch (IOException e) { System.out.println("erreur:"+e.getMessage()); } System.out.println("PATH :"+PATH);au lieu dePATH : C:UsersMoi'
PATH : C:\Users\Moi'
Partager