나는이 파일의 텍스트의 라인 번호 3을 대체하기 위해 노력하고 있지만없는 적절한 라인을 업데이트 할 :파일의 라인을 교체
RandomAccessFile raf=new RandomAccessFile(absoluteFile,"rw");
int lineCount=0;
while(raf.read()!=-1) {
String s=raf.readLine();
//System.out.println(s);
String stAry[];
lineCount++;
if (lineCount==3) {
System.out.println(s);
stAry=s.split("=",2);
stAry[0]="NO_OF_RECTGlE";
stary[1]=100+";";
String str=Arrays.toString(stAry);
byte []byt=str.getBytes();
raf.write(byt);
}
}
: 여기
ENTITY test_labelOperation IS
generic (
NO_OF_COLS : integer := 640;// This is 3rd line and replace should be look like NO_OF_RECTGlE=100;
NO_OF_ROWS : integer := 480;
NO_BITS_CC : integer := 10;
DATA_WORD : integer :=8;
CODE_WIDTH :integer :=9
);
END test_labelOperation;
내가 노력하고 코드입니다
디버거와 그것을 통해 강화하면, 어떤 라인 3에서 일어난 :
여기에 단순위한 Apache commons-io를 사용하는 예입니까? –