Writing to file - case 'o'