2006년 9월 27일 수요일

File 처리....

File에 어떠한 데이터를 덧붙여 쓸때



jdk 1.4 이상

FileWriter(File file, boolean) 뒤에 boolean에 true를 써주면 뒤에 이어쓰기



jdk 1.4 이하

RandomAccessFile(File file, String mode) : 접근 모드
RandomAccessFile.seek(int)  : 커서의 위치
RandomAccessFile.writeBytes(String msg) : 입력

댓글 없음:

댓글 쓰기