get xml/html files from the internet into a text-object
Feb 01 2010 | 4:20 pm
i'm just working on a project where I need to download xml-files automatically. already i've built a patch that works very well but i know it's not perfect.
the problem is that I can't figure out, how many lines there are in the jit.textfile. for my project I know, that I need exactly 88 lines, but if the file is smaller than that, it fills my max-window with error-messages. and if the number would be bigger, I just wouldn't get the data.
in my example you'll get these error-messages. does anyone have an idea how to solve this problem?
(I know there is way of handling that, when you just write the file to disk and then open it into the text-object, but i wonder if it would be possible to get a solution with my approach of doing it directly)