Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String path = new File("src\\main\\resources\\people.txt").getAbsolutePath();
- String Path = new File("").getAbsolutePath();
- String filePath = Path.concat(sep + "myprop.properties");
- FileInputStream fis = new FileInputStream(filePath);
- prop = new Properties();
- prop.load(fis);
- System.out.println("Prop: " + filePath);
Advertisement
Add Comment
Please, Sign In to add comment