Best way to add slash to tail of the path
    Suliman via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Thu Nov 27 12:20:24 PST 2014
    
    
  
>take a second look then. ;-) you'll find `buildPath()` here too.
Not better:
	string foo = "D:/code/txtDownloader";
	writeln(foo);
	foo = foo.buildPath;
	foo ~= "config.txt";
	writeln(foo);
Running .\txtdownloader.exe
D:/code/txtDownloader
D:/code/txtDownloaderconfig.txt <-- need: 
D:/code/txtDownloader/config.txt
    
    
More information about the Digitalmars-d-learn
mailing list