How can I do that with D? In C# you can do that:
var filename = @"C:\path\to\my\file.txt"; var file = new Uri(filename).AbsoluteUri; // file is "file:///C:/path/to/my/file.txt" How can I do that in D?
Dr.No via Digitalmars-d-learn Thu, 21 Jun 2018 11:51:03 -0700
How can I do that with D? In C# you can do that:
var filename = @"C:\path\to\my\file.txt"; var file = new Uri(filename).AbsoluteUri; // file is "file:///C:/path/to/my/file.txt" How can I do that in D?