Just browse on google: Is internet connection available
Although makes me thing if the readwwtxt returns nil,
wouldn't that mean that either the txt file cannont be accessed, or theres no internet connection?
Here is the original code for my function:
http://www.theswamp.org/index.php?topic=46438.msg514570#msg514570
Here is another implementation of the method:
http://www.theswamp.org/index.php?topic=45220.msg504240#msg504240
And here is the likely source of where you found the code in your post:
http://www.theswamp.org/index.php?topic=45700.msg508403#msg508403