Menu

#12 xjava.io.File - new File(str) - fails to read file

open
nobody
None
5
2004-03-19
2004-03-19
Billy Shine
No

When a new java.io.File(str) is created where str is a
relative file name this file is not readable. No error is
reported but the std o/p repeatedly prints the following
debug statement:

xjava.io.File - mydir\myfile.txt

This used to work in 0.3.4.

It seems that File needs to append the full pathname?

File(str) needs to do this (cf: javax.io.FileInputStream)

super(File.getVirtualRoot() + str);

instead of this

super(str);

Discussion


Log in to post a comment.