Commit 88886a1b877ff53dba943c2a3997ed1ded5378ed
1 parent
c8bc5071
Exists in
master
nova classe java para implementar contato
Showing
1 changed file
with
15 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,15 @@ |
1 | +package br.com.model.utilities; | |
2 | + | |
3 | +import java.io.FileInputStream; | |
4 | +import java.io.IOException; | |
5 | +import java.util.Properties; | |
6 | + | |
7 | +public class ManagerProperties { | |
8 | + | |
9 | + public Properties getProp(String path) throws IOException { | |
10 | + Properties props = new Properties(); | |
11 | + FileInputStream file = new FileInputStream(path); | |
12 | + props.load(file); | |
13 | + return props; | |
14 | + } | |
15 | +} | ... | ... |