Re: Parse file.

Giganews Newsgroups
Subject: Re: Parse file.
Posted by:  Liam Mullane (STOPSPAM.lmulla…@dairymaster.com)
Date: Thu, 1 Jul 2004

Hi Remy,

I would really appreciate your help as I've been at this for a couple of
days. Can you try the following code?

Many thanks,
Liam

// Indy Version is 9.0.14 with CBuilder4

IdFTP1->Host = "ftp.skynet.ie";
IdFTP1->Username = "ftp";
IdFTP1->Password = "us…@user.com";

IdFTP1->Connect(true, 10000);
try
    {
    IdFTP1->List(NULL, "*.*",true);
    for(int x = 0; x < IdFTP1->DirectoryListing->Count; ++x)
        {
        TIdFTPListItem *Item = IdFTP1->DirectoryListing->Items[x];
        //IdFTP1->DirectoryListing->Parse(flfUnix,Item);
        AnsiString Str = String("Size:") + String(Item->Size) + String("
Date:") + Item->ModifiedDate.DateTimeString() + String(" : File:") +
Item->FileName.Trim();
        Memo1->Lines->Add(Str);
        }
    }
__finally
    {
    IdFTP1->Disconnect();
    }

Replies

In response to

Parse file. posted by Liam Mullane on Mon, 28 Jun 2004