You need to access it by ftp protocol or by http by publishing the file on a web server. Simply providing machine name or accessing it by file:///... will not work.
I don't think that is true. If I remember correctly, you can easily open a network file in a JFileChooser.
Anyway, moving to our IO forum...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Sorry for posting in the wrong forum from the start. Oops. Anyway, thanks for the help. I don't understand why I can't just say: "u:\\mydir" or, as I have here, "\\\\sweetums\\...". Can someone show me an example of what I need to do?
We do what you're talking about "u:\mydir", for example, but you need to map a drive somehow first. We do this in Windows as well as OS400. Once the drive is mapped you can access anything on that drive with normal IO works (as long as you're authorized to access the folders and files.
Thanks Dan. The drive is mapped. I can browse it just fine from the same machine I'm running the test from (the drive is my personal drive on the network). Yet, the IO exception??? Could there be some other problem? I KNOW I have all the permissions I need.
The good news is that I was able to take your example and just change the path to a server I use and it worked just fine. So, I'm thinking your code is fine and since you can find the fine in "run" then your connection is fine. I wonder if it's a simple typing mistake. I often have test files that I call test.txt and then accidentally code to look for text.txt or some similar mistake. I'd just double check the name of each directory and the file itself.