Reading in text from a data file. How can I get line breaks to work? I’ve tried \n, but it just puts “\n” into the string instead of creating a new line.
EDIT:
The text is coming from a web service, which does not have true line breaks in the text.
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.
I do not understand your problem, doing it this way I get this result:
script to create the test file:
objective c code:
my output:
I hope you can be useful.