Search code examples
javafileremote-accessfileserverfileshare

Access file on a share(File server)


I want to access a file server that is not present in my network, but I have credentials of other domain that can be used to access the file. How do I gain access to the file in share? Is it possible to gain access to the file using a java program? Operating System is Windows. I want to read the contents from .txt and .csv files present in the share and display it on a web page.


Solution

  • I used jcifs library to solve this. It works great.