Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Read Remote FTP Text File Directly to a String Variable
Demonstrates how to download a text file from an FTP server directly into a string variable.
set ftp = CreateObject("Chilkat.Ftp2")
ftp.UnlockComponent "any string begins the 30-day trial"
ftp.Username = "***"
ftp.Password = "***"
ftp.Hostname = "ftp.***.com"
ok = ftp.Connect()
if (ok <> 1) then
MsgBox ftp.LastErrorText
end if
stringData = ftp.GetRemoteFileTextData("sampleText.txt")
if (len(stringData) = 0) then
MsgBox ftp.LastErrorText
end if
MsgBox stringData
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.