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, this message appears:
The given path format is not supported.
var dataHora = DateTimeOffset.Now.ToString("o");
dataHora.Replace(':', '-');
dataHora.Replace('/', '-');
File.WriteAllText(caminho + dataHora + "_teste.txt");
How do I create this?