How To Read A Remote Text File
Posted
by
XcodeDev
on Stack Overflow
See other posts from Stack Overflow
or by XcodeDev
Published on 2011-01-07T22:52:15Z
Indexed on
2011/01/07
22:53 UTC
Read the original article
Hit count: 205
Hi,
I would like to read a remote text file called posts.txt on my website. An example of the insides of the posts.txt file would be this:
<div style="width : 300px; position : relative"><font face="helvetica, geneva, sans serif" size="6"><b>2</b></font><font face="helvetica, geneva, sans serif" size="4"><i> scored by iSDK</i></font><br><img src="Bar.png" /></div><div style="width : 300px; position : relative"><font face="helvetica, geneva, sans serif" size="6"><b>2</b></font><font face="helvetica, geneva, sans serif" size="4"><i> scored by martin</i></font><br><img src="Bar.png" /></div>
What I wanted to know is how can I get the score, and scored by text from the .txt file? The score is (in this case) the: <b>2</b>
, and the scored by text in this case would be: "scored by iSDK". Any code telling me how to do this is twice as helpful!
Thanks in advanced
XcodeDev
© Stack Overflow or respective owner