From: Peter Szinek Date: 2006-05-10T16:33:06+09:00 Subject: Re: non-static way to get the filename? Pit Capitain wrote: > 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. Yep, point taken (i wrote the reply assuming that "pathname" does not exist). Of course it would not be a good idea to put file-specific stuff into the String class, but i have thought file is a File - only now i havenoticed it is not! Thx for pointing it out! SG, Peter