View Single Post
  #2 (permalink)  
Old 07-24-2007, 11:29 PM
Leech
Posts: n/a
What about subdirectories? Doesn't the line

file = file.replaceAll("/", "");

cram the link we type in the browser into a long string.

For example, if I were to have a file.fil under folder. Wouldn't localhost:80/Folder/file.fil make the file name Folderfile.lif?

I tested it out and it throws IOExceptions and of course, the file Folderfile.fil doesn't exist.

But overall, this is a helpful tutorial.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to For This Useful Post:
HelloWorld (07-24-2007)