Mercurial > projects > ldc
view tango/example/conduits/filepathname.d @ 143:336ec4f4bbb3 trunk
[svn r147] tango.io.Console is now working. True this time :) Yay!
author | lindquist |
---|---|
date | Fri, 25 Jan 2008 01:42:36 +0100 |
parents | 1700239cab2e |
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; }