![](https://csdnimg.cn/release/download_crawler_static/4621911/bg14.jpg)
■ CONTENTS
xviii
File System Information...............................................................................................580
The Path Class....................................................................................................................................581
The Directory and File Classes ...........................................................................................................582
The DirectoryInfo and FileInfo Classes ...............................................................................................587
The DriveInfo Class.............................................................................................................................589
A Sample File Browser .......................................................................................................................590
Reading and Writing with Streams..............................................................................594
Text Files ............................................................................................................................................594
Binary Files.........................................................................................................................................596
Shortcuts for Reading and Writing Files.............................................................................................597
A Simple Guest Book ..........................................................................................................................598
Allowing File Uploads ..................................................................................................604
The FileUpload Control .......................................................................................................................604
The Last Word..............................................................................................................607
■ Chapter 18: XML...............................................................................................609
XML Explained .............................................................................................................609
Improving the List with XML...............................................................................................................611
XML Basics .........................................................................................................................................612
Attributes............................................................................................................................................613
Comments ..........................................................................................................................................614
The XML Classes..........................................................................................................615
The XML TextWriter ............................................................................................................................615
The XML Text Reader..........................................................................................................................618
Working with XML Documents in Memory .........................................................................................623
Reading an XML Document ................................................................................................................628
Searching an XML Document .............................................................................................................631
XML Validation.............................................................................................................632
XML Namespaces ...............................................................................................................................632
XML Schema Definition ......................................................................................................................635
Validating an XML Document..............................................................................................................637