Crse3358ae Lab01

You want to list the existing journal entries represented by individual files in a subdirectory named Entries. For this you need to use the DirectoryInfo class to retrieve the list of files in the corresponding subdirectory.

The principal tasks for this exercise are as follows:

• Open an existing Console application.

• Write code to list the existing journal entries by using the System.IO.DirectoryInfo class.

Task

Supporting information

1. Open an existing Console application.

• Open Microsoft Visual Studio 2005.

• Locate and open the existing Console application crse3358ae_lab01.sln.

• Use E:\Labfiles\Starter\VB\crse3358ae_lab01 or E:\Labfiles\Starter\CS\crse3358ae_lab01 folder, depending on the language you are using.

2. Write code to list the existing journal entries by using the System.IO.DirectoryInfo class.

• In Solution Explorer, open the Program.vb or Program.cs file, depending on the language you are using.

• Write code to list the existing journal entries located in the Entries subdirectory by using the DirectoryInfo class.

0 0

Post a comment

  • Receive news updates via email from this site