public void Update(string aId) { iId = aId; var file = iFileInfo.Create(); using (var writer = new StreamWriter(file)) { writer.Write(iId + "\n"); writer.Flush(); } }