private void SalvarConfigAtual() { var configAtual = new StringBuilder(); configAtual.AppendLine(tbNomePesquisador.Text) .AppendLine(tbNomeParticipante.Text) .AppendLine(numIdadeParticipante.Value.ToString()) .AppendLine(cbSexoParticipante.SelectedIndex.ToString()) .AppendLine(numNumeroParticipante.Value.ToString()) .AppendLine(tbArquivoFrases.Text); var arquivoCache = Ambiente.CriaPastaRelativa(PASTA_CACHE) + $"\\{ARQUIVO_ULTIMA_CONFIG}"; File.WriteAllText(arquivoCache, configAtual.ToString()); }