In the ASP.NET, namespaces are introduced, where the namespace corresponding to the file operation is System.IO. The namespaces and dynamic link libraries are somewhat similar, but the namespace can be applied throughout the .NET system. You can use <% @ Import Namespace = ...%> in the page of ASP.NET. Fido is used in VB6 to operate files, and file objects and FSOs in ASP.NET are very similar. Here I introduce the File object: The role of the File object is mainly to create a file stream object. By File objects, you can fully manage system files, you can create, copy, delete, move, and open files below my door first created a File object. In ASP.NET, you can use two methods to create a File object. (1) Use the DIM statement to create a File object Dim Mikecatfile as file mikecatfile.create (2) use the New statement to create a File object Dim Mikecatfile as new file ("C: / Mikecat. TXT ") can also define this Dim Mikecatfile as file mikecatfile = new file (" c: /mikecat.txt "), please note that the VB syntax used in ASP.NET no longer needs to use the set statement File object when performing object assignment. The primary property is only used for file read and write operations for file objects, as long as 2 properties: Length and Name are the length and file name of the file, respectively. The main method of the FILE object has 9 common methods (1) CREATE Method This method is used to create a new file Function Create (String) AS fileStream where String is the path to the file you want, return FileStream object, this object Provide channels for documents (2) DELETE Method This method is used to delete an existing file sub delete (SUB Delete () If the File object contains file parameters, you can use the second method to delete files. Otherwise, you can only use the first method to delete the file, and the String parameter specifies the file path to be deleted. (3) COPY method This method is used to copy a file to a new file sub copy (Source, Destination) source specify the path of the source file, Destination Specifies the path of the destination file. The copy method only allows you to copy an already existing file to a new file, which is not allowed to overwrite an existing file. (4) CREATEXT method This method is used to create a new file that can be written. Function CreateText (STRING) AS streamwriter or Function CreateText () AS StreamWriter Returns the StreamWriter object is used to perform the write operation of the file and the CREATE method is not the same, the CreateText method is not a FileStream object, but the StreamWriter object.