A
Alan
I can read from a tape device using a FileInputStream as follows:
FileInputStream in = new FileInputStream(new File("\\.\Tape0"));
// followed by standard stream reading stuff
Under Linux, I can write to that device as follows:
FileOutputStream out = new FileOutputStream(new File("\\.\Tape0");
// followed by the standard stream writing stuff
However, under Windows, the FileOutputStream code above fails with an
IOException in the FileOutputStream.open() method, and a message saying
that "the parameter is incorrect".
The same problem occurs in the Windows JDK versions 1.3x, 1.4x, and
1.5x. Is this a known bug in the Java VM? Or is my approach wrong?
Thanks!
FileInputStream in = new FileInputStream(new File("\\.\Tape0"));
// followed by standard stream reading stuff
Under Linux, I can write to that device as follows:
FileOutputStream out = new FileOutputStream(new File("\\.\Tape0");
// followed by the standard stream writing stuff
However, under Windows, the FileOutputStream code above fails with an
IOException in the FileOutputStream.open() method, and a message saying
that "the parameter is incorrect".
The same problem occurs in the Windows JDK versions 1.3x, 1.4x, and
1.5x. Is this a known bug in the Java VM? Or is my approach wrong?
Thanks!