I want to put the content of my html resource file into an NSString object. Is it possible and advisable to do that? How could it be done?
I want to put the content of my html resource file into an NSString
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Possible? – yes
Advisable? – unless it is an extremely large file, why not?
How? – There is already a method to do it for you in
NSString–stringWithContentsOfFile:encoding:error:.See the snippet below: