Class - FtpFile

This section lists all properties and methods associated with FtpFile.

Data Types

The following are the data types used by FtpTree ActiveX Control:

  • BSTR
    • Basic String used by OLE to transfer strings of text.
  • BOOL
    • Boolean value, can be True or False.
  • I4
    • 4 byte signed integer.
  • DISPATCH
    • an object pointer, for FtpTree, usually it refers to a TreeItem.
  • VARIANT
    • an object whose value varies. For FtpTree it's usually a SAFEARRAY, or simply put, an array of items.
Properties
long Position Returns the current file position.

Methods
long Close() Close the file. This function MUST be called when done with the file.
long Read(VARIANT Buf, long Count) Read bytes from the file.
long Write(VARIANT Buf, long Count)) Write bytes to the file.