0
I’m having trouble creating a file with the following template:
2017-01-17T09:42:15.3419026-02:00_teste.txt
When I run the application to create appears this message:
No support for the given path format.
var dataHora = DateTimeOffset.Now.ToString("o");
dataHora.Replace(':', '-');
dataHora.Replace('/', '-');
File.WriteAllText(caminho + dataHora + "_teste.txt");
How do I create like this?
You could inform the result that appears from this path + dateHora + "_test.txt concatenation"
– Jeferson Almeida
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).
– Maniero