Desktop app getting content from a web server

i am working on a desktop app and i wont it to read a file from a web server and display the info from the file xml or txt. which would give me the least amount of problems the txt file or the xml file? also i think there is a security issue doing this…

any help would be appreciated
kool