view tango/example/conduits/filepathname.d @ 243:4d006f7b2ada trunk

[svn r260] Changed some of the LLVMDC specific code in the Tango core and did some minor cleanups.
author lindquist
date Mon, 09 Jun 2008 03:02:14 +0200
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;
}