aspose file tools*
The moose likes I/O and Streams and the fly likes Connecting to Unix via Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Connecting to Unix via Windows" Watch "Connecting to Unix via Windows" New topic
Author

Connecting to Unix via Windows

Theodore Reph
Greenhorn

Joined: Dec 19, 2005
Posts: 1
From a windows box, how can I read a file that is on a Unix box and write a file to the Unix box (using Java)?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Is the Unix file system mounted to the Windows box as a separate drive? If so, you should be able to do access files the same way you do local files on the C:. If not, does the Unix box provide an FTP server? Or are the files available via HTTP? Java provides some tools that allow you to handle files over these two protocols. There may also be some third-party tools that will make it easier, but I don't know of any off the top of my head.

Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connecting to Unix via Windows