[4270] in java-interest
filename on WindowsNT
daemon@ATHENA.MIT.EDU (bergold@igd.fhg.de)
Fri Dec 15 06:31:17 1995
From: bergold@igd.fhg.de
Date: Fri, 15 Dec 95 11:20:34 +0100
To: java-interest@java.sun.com
I am working with the JDK for WindowsNT and like to open a file , using the
class FileInputStream. The filename is :
d:\users\michael\testfile.txt
But with this name I got the following compilermessage by javac :
Readfile.java:10: Invalid escape character.
name = new String("d:\users\michael\testfile.txt");
^
After changing "\" to "\\", like in C++, I got the same compiler message.
Replacing "\" with "/", like in UNIX, I got no compiler error, and the
appletviewer reads the file, but Netscape throws an FileNotFoundExecption.
How can I read this file with the appletviewer and Netscape, or what is the
correct filename ?
In the alpha version, I could read the file with the name
d:\\users\\michael\\testfile.txt
within the hotjavabrowser.
Could anyone help me please.?
Michael Bergold
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com