private void salvarSaldo() // SALVA O SALDO NO ARQUIVO 'SALDO.TXT'. { String textoRecebido = txbDinheiro.Text.Replace("R$", "").Replace(" ", "").Replace("00,", ""); Double.TryParse(textoRecebido, out double saldoTemp); double saldoParcial = saldoTemp + saldoFinal.getSaldo(); saldoFinal.setSaldo(saldoParcial); StreamWriter writer = new StreamWriter(@"files\\saldo.txt"); writer.WriteLine(saldoFinal.getSaldo()); writer.Dispose(); System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("pt-BR"); lblSaldo.Text = string.Format("{0:C}", Convert.ToDouble(saldoFinal.getSaldo())); }