Niveau | 5 of 5: integraal |
---|---|
Leerdoelen | Class, Property, Constructor, private/public, UI separation, algoritme. |
Vereiste voorkennis | Goed om kunnen gaan met classes en objecten en GUI separation. |
Challenge Type | Programming. |
Study the C# classes of the .NET framework that allow you to work with files, folders, directories, etc. C# has a variety of methods for reading and writing text files, moving files, creating folders, etc. Then work on some of the cases below to practice file handling and get feedback from your instructor:
In consultation with your teacher, choose all or some of the cases below to practice file handling.
A class can be thought of as a structure in C# that has a number of methods that belong together. Write a short document in which you describe the functionalities of the following classes in the .NET framework. Describe what you as a C# programmer can do with these classes, give some short code examples.
Write a Windows Forms C# program that meets the following requirements:
Extend the application of case 1 with a for loop that does NOT show (skips) all files starting with the letter a in the second listbox.
Create an application that allows text files to be edited. The minimum user interface is a text field, a Save button and an Open button.
Create an application that shows all the disks on your computer (like Windows Explorer can) in a simple listbox. See
Add the following features to the My Computer application:
While copying a file (see Case Study 5a), display a progress bar indicating how long the copying action will take.
Create an application that can look up any user-entered word in a file. Display the line number in the file where the word appears on the screen.