www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to access a ftp sever with socket

SGVsbG8gQW55b25lOgogICAgIGkgYW0gdHJ5aW5nIG1ha2UgYSBmdHAgY2xpZW50IHdpdGggc29j
a2V0LGkgaGF2ZSB0cmllZCBzdGQubmV0LmN1cmwsYnV0IGkgY29udCBzdGFuZCB3aXRoIHNvIG1h
bnkgdHJ5LWNhdGNoIHN0cnVjdHVyZSBpbiBteSBjb2RlLGkgYW0gbm90IGZhbWlsaWFyIHdpdGgK
c29ja2V0LGkgd3JpdGUgYSBwZWNpZSBvZiBjb2RlIGJ1dCBpdCBjb250IGdpdmUgbWUgdGhlIHdl
bGNvbWUgbWVzc2FnZSB3aGljaCBpIHdhbnQsYW5kIHRoZW4gaSB1c2Ugd2lyZXNoYXJrIHRvIHRy
YWNlIHRoZSBjb211bmljYXRpb24saSBmb3VuZCB0aGF0CmZ0cCBzZXJ2ZXI6MjEgc2VuZCB0aGUg
bWVzc2FnZSB0byBteSBjbGllbnQ6MTAyNCxidXQgd2h5IHRoZXJlIGlzIG5vdGhpbmcgaW4gc3Ry
IGJ1Zj90aGFua3MgZm9yIHlvdXIgaGVscC4KaW1wb3J0IHN0ZC5zb2NrZXQsc3RkLnN0ZGlvOwp2
b2lkIG1haW4oKXsKIHN0cmluZyBpcCA9ICIqKioqKioqKioqIjsvL2kgaGlkZSB0aGUgYWRkcmVz
cwogaW50IG1zZWNzID0gMTAwMDsKIGF1dG8gZnRwID0gZ2V0QWRkcmVzc0luZm8oaXAsImZ0cCIp
OwogU29ja2V0IGxpc3RlbmVyID0gbmV3IFRjcFNvY2tldDsKIGxpc3RlbmVyLmJpbmQobmV3IElu
dGVybmV0QWRkcmVzcygxMDI0KSk7CiBsaXN0ZW5lci5jb25uZWN0KGZ0cFswXS5hZGRyZXNzKTsK
IGF1dG8gcGFpciA9IHNvY2tldFBhaXIoKTsKIGF1dG8gc29jayA9IHBhaXJbMF07CiBzb2NrLnNl
dE9wdGlvbihTb2Nr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