[Info-vax] Java portability and VMS

Arne Vajhøj arne at vajhoej.dk
Wed Feb 23 21:57:11 EST 2011


On 21-02-2011 08:22, Bob Koehler wrote:
> In article<4d5efe83$0$23762$14726298 at news.sunsite.dk>, =?ISO-8859-1?Q?Arne_Vajh=F8j?=<arne at vajhoej.dk>  writes:
>> 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.
>
>     On what UNIX in what language is \ not the escape character?
>     \t is either tab or just plain old t.

Java uses escape the same way on Windows and *nix.

So a filename of C:\test.txt is written as "C:\\test.txt"
in the source code.

And the program will do as I describe.

Arne



More information about the Info-vax mailing list