Code example for RandomAccessFile

Methods: seek, write

0
	} 
	@Override 
	public void write(int arg0) throws IOException {
		// TODO Auto-generated method stub 
		if(fileAcess==null){
			fileAcess=new RandomAccessFile(filename,"rw");
			fileAcess.seek(readed);
		} 
		fileAcess.write(arg0);
		readed++;
	} 
	@Override 
	public void close() throws IOException{ 
		 
			super.close(); 
			if(fileAcess!=null)
				fileAcess.close();
		 
	}