죄송합니다. 문자열을 찾고 자바 텍스트 파일에 텍스트를 추가하십시오.
이
는 텍스트 파일입니다[TESTRESULT]
testdate=5/16/2013
testtime=20:03:00
operator=Jacob Poulsen
test_no=62495
axles_tested=2
[AXLE1RESULT]
fric_l=38
fric_r=51
p0_l=0
p0_r=0
fl=280
fr=300
그래서 내가 찾을 첫째 찾기 문자열 예에 대한 문제 :
두 번째 텍스트 추가이
[TESTRESULT]
testdate=5/16/2013
testtime=20:03:00
operator=Jacob Poulsen
test_no=62495
axles_tested=2
[SomeText]
Something=0
Something=0
Something=0
[AXLE1RESULT]
fric_l=38
fric_r=51
p0_l=0
p0_r=0
fl=280
fr=300
처럼 [AXLE1RESULT]
전까지 어떤 방법 내가해야 해야 할 것???
나는 매우 당신이 요구하는 것을 말할 수 있습니다; 이러한 파일은 Windows INI 파일 형식으로되어 있습니다. 아마도 http://stackoverflow.com/questions/190629/what-is-the-easiest-way-to-parse-an-ini-file-in-java가 도움이 될 것입니다 (ini4j는 읽기, 구문 분석 및 쓰기가 가능하며 값을 쉽게 수정할 수 있습니다). –