Posted By:
Anonymous
Posted On:
Monday, July 16, 2007 05:22 PM
In Java, you connect to a file on a shared directory path using a file location convention that is similar to what you would use in Windows Explorer (only the slashes are changed):
File someFile := new File("//hostName/shareName/dirPath/fileName");
Reading the file is left as an exercise for the reader.
Note: This solution is not platform-independent.