MyDataOutputStream out=new MyDataOutputStream(new BufferedOutputStream(new FileOutputStream(sFileName)));
long l_Station_id = Integer.parseInt(STATION_ID);
long l_Run_code =Long.parseLong(RUN_CODE);
out.writeLong(l_Station_id);
out.writeLong(l_Run_code);
out.close();我的程序代码!
long l_Station_id = Integer.parseInt(STATION_ID);
long l_Run_code =Long.parseLong(RUN_CODE);
out.writeLong(l_Station_id);
out.writeLong(l_Run_code);
out.close();我的程序代码!
f.seek(f.length());
f.writeBytes(content+"\r\n");记得处理异常!
加\r\n只是加个回车,Linux下加个\n就行