Guest User

Untitled

a guest
Jan 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. string caminhoArquivo = "C:\LogErro\erro.txt";
  2.  
  3. if (!File.Exists(caminhoArquivo))
  4. {
  5. FileStream arquivo = File.Create(caminhoArquivo);
  6. arquivo.Close();
  7. }
  8. using (StreamWriter w = File.AppendText(caminhoArquivo))
  9. {
  10. AppendLog(textoErro, w);
  11. }
  12.  
  13. return await Task.FromResult(InternalServerError(ex));
  14. }
Add Comment
Please, Sign In to add comment