[Info-vax] Java portability and VMS

Arne Vajhøj arne at vajhoej.dk
Fri Feb 18 18:19:33 EST 2011


On 18-02-2011 18:04, Bill Gunshannon wrote:
> In article<4d5eee14$0$23762$14726298 at news.sunsite.dk>,
> 	Arne Vajhøj<arne at vajhoej.dk>  writes:
>> On 18-02-2011 11:34, glen herrmannsfeldt wrote:
>>> Arne Vajhøj<arne at vajhoej.dk>   wrote:
>>> (snip)
>>>
>>>> Opening a file with the name C:\test.txt on Unix does not
>>>> work well either.
>>>
>>> Well, c:\test.txt is a legal unix file name, so if you have
>>> a file by that name you can open it.
>>
>> I think if is the key here.
>
> Well, the same is true in DOS.  "IF" the file exists it will work and
> "IF" it doesn't both would fail.  What's your point?

Well - Java does not run on DOS, so ...

But on Windows the code will look for a file test.txt
in the root of the C drive while it on *nix will look for
a file in current dir containing colon and backslash.

The first is what was intended by the programmer meaning
that the file should be there, while the second is not
intended by the programmer and the file will not be there.

The difference of working versus not working.

Arne



More information about the Info-vax mailing list