Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access network folder  RSS feed

 
Mahi Rahman
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Does anybody know what could be the way to access a network folder? I need to access an unix folder from a java 1.4 program and then read a specific file from that folder. I tried to read some chapters about networking or I/O where they use network socket for this purpose. But I am not allowed to create any socket on the server side. And also the server has password and username which my program needs to give as an argument. Any idea? Please help.

Many many thanks,
Mahi.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of access do you have to that folder? If the drive is mounted, all all permissions have been given, you should be able to use the java.io.File classes as you would with a local class. If the file is on a Samba share (probably not, because you specifically mention a Unix share), you could use the jCIFS library.

Sockets are not the answer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!