tags:

views:

22

answers:

2

if we have tree structure of a file that located at the remote system then how can we retrieve that file Any code for that?

+2  A: 

It depends on the file system in question. NFS is different to SFTP is different to SMB is different to AFS etc etc.

Your OS might allow you to mount the remote file system onto your main file system (e.g. via FUSE), in which case you just treat it as a normal file.

David Dorward
A: 

Did you try fopen ? It works for network files. If remote server have http or ftp, you can use curl.

Zote