| | |
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
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:
Can anyone tell me what it is?
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!");
}
}
});
}
}![]() | Mark as Unsolved |
Similar Threads
- Random Images on Refresh (JavaScript / DHTML / AJAX)
- Is it possible to build a time machine through the use of programming? (Geeks' Lounge)
- load-intensive shell script (Shell Scripting)
- Repeat a script for multiple files (C++)
- Inserting date in format DD-MM-YYYY in MySQL (MySQL)
- ASP/SQL - Problem (ASP)
Other Threads in the Computer Science Forum
- Previous Thread: p2p network ????
- Next Thread: QuickSort
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience computertrackingsoftware conversion csc dataanalysis dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws linkbait lsmeans mainframes marketing mobileapplication msaccess nano netbeans networking news os p2p piracy piratebay programming rasterizer research sam-being-cute sas science security sex simulation software spying stephenfry study supercomputer supercomputing sweden technology textfield turing turingtest two'scompliment uk virus ww2





