I am trying to open a file read it\'s content and write to it by using the contents that were read earlier. I am opening the file in \'a+\' mode. I can\'t use \'r+\' mode si