SIMPOL Documentation

Chapter 4. Command Line Programs

Building a Command Line Program

In this chapter we are going to build a program that based on the parameters passed, downloads a page from the Internet and stores it in an output file. If it gets an error while retrieving the page it will output an error message. If run without any parameters it will report the correct method of running the program. The program is called urldump.smp, and there is a project already located in the Projects\console directory.

Before you run off and start devouring that program though, it would be a good idea to continue reading here. The a reason is that although that program will show you how its done, it won't be able to explain how it came to be in that form. That said, it is probably time to do just that.