게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
흠... 자바 TextArea 때문에 그런데요...
게시물ID : computer_45296짧은주소 복사하기
작성자 : 별찌아라
추천 : 0
조회수 : 496회
댓글수 : 3개
등록시간 : 2012/04/29 02:25:37
FileInputStream read = null;
        try {
read = new FileInputStream("test.txt");
             } catch (FileNotFoundException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}


DataInputStream read1 = new DataInputStream(read);

String st = null;

try {
while ((st = read1.readLine()) != null)
{

TextArea1.append(st + "\n");

}

대충 요 부분인데요.. 텍스트 파일에서 파일을 읽어와서 TextArea로 출력하려는 부분인데요.. 
제 생각대로 라면 이렇게 하는게 맞는데... 안되네요... 
도와주세요.ㅠㅠ
전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호