본문 바로가기
호구지책/Java/Android

[자바] The method readLine() from the type DataInputStream is deprecated

by 하늘의흐름 2016. 7. 21.
반응형

The method readLine() from the type DataInputStream is deprecated



//FileInputStream fis = new FileInputStream(FileName);

//DataInputStream dis = new DataInputStream(fis);


위의 객체를 다음처럼 바꿔서 쓴다.


FileReader fis = new FileReader(FileName);

BufferedReader dis = new BufferedReader(fis);




참조: http://hyeonstorage.tistory.com/249

반응형

댓글