아래와 같은 xml 파일을 자바에서 읽기 환경에 관련된 파일은 소스 안에 넣는 것보다 외부파일로 만들어서 관리를 하게 되면 소스 파일 수정없이 프로그램에 영향을 줄 수 있습니다. 파일명 : sample.xml 127.0.0.1 1521 oracle dbID dbPassword 파일명 MyClassName.java public void MyClassName(){ String address = ""; String port = ""; String serviceid = ""; String userid = ""; String password = ""; try{ String currDir = MyClassName.class.getResource(".").getPath(); File file = new File(cu..