Best way to add slash to tail of the path

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 27 12:29:27 PST 2014


On Thu, 27 Nov 2014 20:20:24 +0000
Suliman via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> >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
and now try to read the documentation. it rocks. no, really, it was
written for people to read it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141127/d3a4be3f/attachment.sig>


More information about the Digitalmars-d-learn mailing list