Re: A strange behaviour of a File property



On 11/11/2011 10:21 PM, Andreas Leitgeb wrote:
Eric Sosman<esosman@xxxxxxxxxxxxxxxxxxxx> wrote:
IMHO, Java errs in exposing any "path separator" at all, because
it just encourages string-bashing. Note that in some file systems
there is no such thing as a "path separator;" on one such I had
files with names like
SYS$DISK:[USERS.ERIC.PROJECT]README.TXT;22

Such beasts still exist in the wild?

Yes !

$ type DISK2:[ARNE]HELLOWORLD.JAVA;1
public class HelloWorld {
public static void main(String[] args) throws Exception {
System.out.println("Hello world!");
}
}
$ javac helloworld.java
$ java "HelloWorld"
Hello world!

Arne
.



Relevant Pages

  • Re: A strange behaviour of a File property
    ... On 11/12/2011 8:15 PM, Andreas Leitgeb wrote: ... it just encourages string-bashing. ... Note that in some file systems ... there is no such thing as a "path separator;" on one such I had ...
    (comp.lang.java.programmer)
  • Re: A strange behaviour of a File property
    ... it just encourages string-bashing. ... Note that in some file systems ... there is no such thing as a "path separator;" on one such I had ... Anyway, as it seems, java is able to ...
    (comp.lang.java.programmer)
  • Re: A strange behaviour of a File property
    ... Note that in some file systems ... there is no such thing as a "path separator;" on one such I had ... Anyway, as it seems, java is able to ... losing out only to Date. ...
    (comp.lang.java.programmer)