Accessing files and folder from any FTP site
                            
                         
                        
                     
                 
                
                    hi friends,
 
    i am trying to access files and folders from any FTP site using its corresponding port.
 
 for example
 
Input: ftp://dreamincode:21/forums/topic/77912-ftp-download-delete/
 
from  the above FTP site, i need to parse that site and accessing the file  which is avail in forums then check it out topic. so i need to access  all files and folders till end of the FTP site URL. 
 
files may be
 
             *.log or *.csv like that..
 
 I don't know how to do it, any one can help me to complete this...
 
thanks in advance,
 
regards,
 
sasi