posted 11 years ago
you can get input from the command line, read from a file, read from a database, open a socket connection, display a pop-up window, connect to a piece of hardware (scanner, volt meter, etc.)
Can you narrow your question a bit?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors