mardi 23 mai 2017

download web file as text

I have following link

http://ift.tt/2rQxjIl

When I view this link on chrome browser, it looks like a text file. I am trying to download it using following code

URL url = new URL("http://ift.tt/2rQxjIl");
        FileUtils.copyURLToFile(url, targetFile);

But it gives me html format file , like

<wddxPacket version='1.0'><header/><data><string><char code='0d'/><char code='0a'/>Provider: HERO - 2.xx<char code='0d'/><char code='0a'/><char co

How can I download it as text file?




Aucun commentaire:

Enregistrer un commentaire