Read a .txt file from a server?

I need only read a txt file at my server on my X-Code project.

And thats the way:

NSString* myFile = [NSString stringWithFormat:@"http://www.yourdomain.com/yourfile.txt"];

    NSString* myFileURLString = [myFile stringByReplacingPercentEscapesUsingEncoding:NSASCIIStringEncoding];

    NSData *myFileData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:myFileURLString]];

    NSString *returnedMyFileContents=[[[NSString alloc] initWithData:myFileData encoding:NSASCIIStringEncoding] autorelease];    

    NSLog(@"%@", returnedMyFileContents);
Loading