O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

17.3 (File of Student Grades) Create a program that stores student grades in a text file. The file should contain the name, ID number, class taken and grade of every student. Allow the user to load a grade file and display its contents in a read-only TextBox. The entries should be displayed in the following format:

LastName, FirstName: ID# Class Grade

We list some sample data below:

Jones, Bob: 1 "Introduction to Computer Science" "A-" Johnson, Sarah: 2 "Data Structures" "B+" Smith, Sam: 3 "Data Structures" "C"

17.4 (Serializing and Deserializing) Modify the previous program to use objects of a class that can be serialized to and deserialized from a file.

17.5 (Extending StreamReader and StreamWriter) Extend ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required