Example: Reporting Crocodiles
To illustrate in a practical way how code and Windows form controls inter- act, this exercise develops a simple data-entry program that reports crocodile sightings. Figure 10-5 shows the finished result.
Figure 10-5. This form accepts reports of crocodile sightings and appends each report to a file.
For simplicity, the output file format is comma separated value (CSV). This is a plain text file format that meets these specifications:
Each line in the file contains one record.
Each record contains the same combination of fields (although not, of course, the same field values).
Within each line, commas separate each field ...
Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.