On 15.02.2005, at 16:46, Christian Andersson wrote:


on linux this code File f = new File("/home/user/path/to/document.sxw"); f.toURL().toString();

would give
file:///home/user/path/to/document.sxw

No, it doesnt. The URL that I get looks like file:/home/user/etc
I thought, I need an URL that looks like file:///home/user/etc..?
But the url with a single slash after "file:" works for opening too.
Can you say whether the file.toURL().toString() URL under windows (whatever it may look like) works for opening too?
That would help me a lot and simplify the whole URL stuff ;)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to