파일 이름이 250 행입니다. 나는 단지 내가이 게시물 How to append text to an existing file in Java파일의 특정 줄 뒤에 텍스트를 삽입하는 방법
그러나와에 있습니다
try {
PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("outfilename", true)));
out.println("the text");
out.close();
} catch (IOException e) {
//oh noes!
}
같은 파일 의 끝에 텍스트를 추가 할 수 있다는 것을 발견 128
줄 뒤에 텍스트를 삽입하고 싶었다 줄 번호 또는 sth에 아무 언급도.
제안하는 코드는 무엇입니까? – jechaviz