NSString *adress = [NSString stringWithFormat:@"ftp://%@:%@@%@/%@x050-pegel.txt", benutzer.text, passwort.text, server.text, pfad.text];
NSURL *aURL = [[NSURL alloc]initWithString:adress];
NSString *theData = [NSString stringWithContentsOfURL:aURL];
textview.text = theData;
can some one help me please ?
AFAIK, FTP support is not part of the Cocoa frameworks. You could get more information by using
+[NSString stringWithContentsOfURL:encoding:error:]
and looking at theNSError
object, like so:A quick google search for "cocoa ftp" shows that there are several approaches to connecting to an FTP server from Objective-C.