Hello,
I am trying to use
NSString *myString = @"NO";
[myString writeToURL:[NSURL URLWithString:@"http://example.com/text.txt"] atomically:YES];
But am having no luck. myString is set to NO and example.com is set to the correct website. The only issue I could see would be text.txt already existing? Can writeToURL
even write to http? I can always go back to using NSTask
and curl but that was a nightmare. :)
Thanks for any help