Random Programming Script

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Thread Solved

Posts: n/a
Solved Threads: n/a
pete
Guest

Random Programming Script

 
0
  #1
Apr 10th, 2003
Whilst wondering around aimlessly, I came across a pack of "Afterworld" cards, and printed on these cards in quite a few places, was this script:
textOutput.append("Date : "+ new Date(usedURLConn.getDate())+"\n");
textOutput.append("Content-Type: "+usedURLConn.getContentType()+"\n");
len = usedURLConn.getContentLength();
textOutput.append("Content length: "+len+"\n\n");

if(len>0)
{
textOutput.append("The file's contents is as follows: \n--------------------\n");
InputStream input = usedURLConn.getInputStream();;
int i=len;
while (((c=input.read()) != -1) && (--i>0))
{
textOutput.append(""+(char)c);
}
input.close();
textOutput.append("\n--------------------\n");
}
else
{
textOutput.append("Sorry! That file is EMPTY, or that file does not exist!");
}
   }
});

}

}
Can anyone tell me what it is?
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 75
Reputation: gusano79 is on a distinguished road 
Solved Threads: 5
gusano79 gusano79 is offline Offline
Junior Poster in Training

Re: Random Programming Script

 
0
  #2
Jun 10th, 2004
Looks like Java code that dumps the contents of a URL-referenced file to a text box. No idea what it might be part of.
Reply With Quote Quick reply to this message  
Reply   Mark as Unsolved

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC