+ ftp.ChDir("/pub/2.8.9");
+ const char *filename = "wxWidgets-2.8.9.tar.bz2";
+ int size = ftp.GetFileSize(filename);
+ if ( size == -1 )
+ {
+ wxLogError("Couldn't get the file size for \"%s\"", filename);
+ }
+
+ wxInputStream *i = ftp.GetInputStream(filename);