Put os.Remove for file removal after the operations are completed. Renamed temp file to be hidden.