From: Pit Capitain Date: 2006-05-10T16:09:45+09:00 Subject: Re: non-static way to get the filename? Peter Szinek schrieb: > Well, for me > > file.basename > > is not cryptic. Maybe for someone it is... Peter, this syntax is very nice, indeed. But remember that your "file" variable above is a string. I don't think it would a good idea to add an immense number of methods to the String class for all the things a string could possibly represent. The standard library "pathname" offers exactly the nice syntax you propose, but uses its own class for file names. Regards, Pit