Mercurial > projects > ldc
view tango/example/conduits/filepathname.d @ 132:1700239cab2e trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author | lindquist |
---|---|
date | Fri, 11 Jan 2008 17:57:40 +0100 |
parents | |
children |
line wrap: on
line source
import tango.io.Console; import tango.io.FilePath; void main(){ Cout ((new FilePath(r"d:\path\foo.bat")).name).newline; Cout ((new FilePath(r"d:\path.two\bar")).name).newline; Cout ((new FilePath("/home/user.name/bar.")).name).newline; Cout ((new FilePath(r"d:\path.two\bar")).name).newline; Cout ((new FilePath("/home/user/.resource")).name).newline; }