2010-04-14 5 views
0

Je peux lire les données dans un fichier file.txt situé dans le disque local.iphone lire le fichier txt de UIWebView

NSString *filePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"txt"]; 
NSString* Data = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:&error ]; 

maintenant, je télécharge le fichier file.txt dans un site Web. comment puis-je lire les données du fichier txt maintenant à partir d'UIWebView?

S'il vous plaît aider !!

Répondre

0

La manière similaire:

NSString* Data = [NSString stringWithContentsOfURL:fileURL usedEncoding:NSUTF8StringEncoding error:&error ]; 
+0

ouais !! merci !!! –