procedure WriteFile(const Handle: TScSFTPFileHandle; FileOffset: Int64; const Buffer; Count: integer); overload;

procedure WriteFile(const Handle: TScSFTPFileHandle; FileOffset: Int64; const Buffer: TBytes; Offset, Count: integer); overload;

 

Description

Call the WriteFile method to write data to the remote file.

If the server returns an error, the OnError event is generated.

 

Parameters:

Handle - a handle previously returned as a response to OpenFile.
FileOffset - the offset in bytes relative to the beginning of the file that the writing started at. This field is ignored if TEXT MODE was specified during the opening.
Buffer - the sequence of bytes that should be written to the file.
Offset - the position in the buffer from which to start reading the data.
Count - the number of bytes to write.

 

See Also

OpenFile

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support