annotate 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 |
|
rev |
line source |
132
|
1 import tango.io.Console;
|
|
2
|
|
3 import tango.io.FilePath;
|
|
4
|
|
5 void main(){
|
|
6 Cout ((new FilePath(r"d:\path\foo.bat")).name).newline;
|
|
7 Cout ((new FilePath(r"d:\path.two\bar")).name).newline;
|
|
8 Cout ((new FilePath("/home/user.name/bar.")).name).newline;
|
|
9 Cout ((new FilePath(r"d:\path.two\bar")).name).newline;
|
|
10 Cout ((new FilePath("/home/user/.resource")).name).newline;
|
|
11 }
|