FTP_Extract

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > FTP (File Transfer Profotol) >

FTP_Extract

 

Description

 

Extracts strings from FTP formatted file list.

 

Syntax

 

sLine = FTP_Extract(sFileListBuffer, LineNumber, FieldNumber)

 

Returns

 

String

The line LineNumber from sFileListBuffer

 

Parameters

 

Name

Type

Optional

Meaning

sFileListBuffer

String

No

Buffer returned by FTP_GetList

LineNumber

Number

No

Line Number

FieldNumber

Number

No

Field number

 

Remarks

 

The FTP_Extract function extracts fields from FTP formatted file lists for LineNumber and field FieldNumber.

A typical line in a full FTP directory listing may look like the following. Note that there are 9 fields.

 

rw rr 1 345 15 100424 Feb 8 16:26 FileName.zip

 

In the line above, field 5 is the file length.

 

The FTP_Extract function is typically called after calling FTP_GetList.

 

Restrictions

 

See also

 

Examples