posted 14 years ago
I don't know much about doing something like this, but are you calling telnet from inside your java app? If so, it sounds like you would have to get telnet to return a textual representation of the directory structure and you would have to interpret it. Do you have to use telnet? How about using something a bit more friendly to java so you wouldn't have to do all the work of setting up interpreting. I don't know what else you are trying to do that would force you into using telnet, so you may be stuck with it.