Reading and writing into the instruction file.