In this step, you create a Web application assembly that calls the file I/O assembly.
Task To create a Web application
Add a new C# ASP.NET Web application project called FileIOWeb to the current solution.
Add a project reference in the new project that references the FileIO project.
Add a text box to WebForm1.aspx to allow the user to supply a path and filename. Set its Text property to c:\temp\somefile.txt and set its ID to txtFileName .
Add a button to WebForm1.aspx and set its Text property to Read File and its ID to btnReadFile .
Double-click the Read File button and add the following code to the event handler:
string s = FileIO.FileWrapper.ReadFile( txtFileName.Text ); Response.Write(s);
Build the solution.