SFTP.RemoteOpen Method (String)

Opens remote file for raw access.

[Visual Basic]
Overloads Public Sub RemoteOpen( _
ByVal RemoteFile As String, _
ByVal Permission As RemotePermissions _
)
[C#]
public void RemoteOpen(
string RemoteFile,
RemotePermissions Permission
);

Parameters

RemoteFile

Full path to the file on remote server.

Permission

Defines combination of flags to open remote file..

Remarks

The RemoteOpen method will open remote file so you can access it as raw data - to manually read or write to parts of that file. You will use RemoteRead and RemoteWrite for accessing the file.

When opening file, you should specify Permissions for opening the file.  While remote file is opened, you should not call other methods than RemoteRead, RemoteWrite, RemoteClose since they may interfere with raw data access. Only one file can be opened at a time using RemoteOpen method.
 

See Also

SFTP Class | SFTP Members | WeOnlyDo.Client Namespace