This How To includes the following steps:
Create an assembly that performs file I/O.
Create a Web application.
Test file I/O with no code access security constraints.
Configure code access security policy to constrain file I/O.
Test file I/O with code access security constraints.