Update a textfile

I want my app to check for a specific textfile on a website and download it and save it, is there any examples for that available?

Maholm [import]uid: 5717 topic_id: 2810 reply_id: 302810[/import]