Read and write avr files