글쓴이 :영돌이 2000년 3월 04일 09:42:29
In Reply to: 이 프로그램 확인 좀 부탁드립니다......(ㅠㅠ) posted by 형동 on 2000년 3월 03일 16:44:30:
답보다는 디버깅하는 방법으로,
while((fname = dis.readLine()) != null) {
try{
list = fname.substring(0,14);
}catch(Exception ee)
{
ee.printStackTrace(); // 혹은
System.out.println(ee.getMessage());
}
System.out.println(list);
}
substring하는 부분에다가도 catch로 에러를 잡을 수
있게 해놓구 프린트해보세요...
아마도 substring하다가 문자열 길이가 14보다 안되는
놈이 있어서 그럴겁니다.