Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string caminhoArquivo = "C:\LogErro\erro.txt";
- if (!File.Exists(caminhoArquivo))
- {
- FileStream arquivo = File.Create(caminhoArquivo);
- arquivo.Close();
- }
- using (StreamWriter w = File.AppendText(caminhoArquivo))
- {
- AppendLog(textoErro, w);
- }
- return await Task.FromResult(InternalServerError(ex));
- }
Add Comment
Please, Sign In to add comment