Recommended: NextRecordset and GetRows methods of ASP NextRecordset and GetRows are two properties of RecordSet that are very effective in improving batch query speed. You may use very little. Let’s share the usage of these two methods: GetRows method: Extract the RecordSet record set into a two-dimensional array, and our behavior of RecordSet data is transferred to the array, so that the record set can be disconnected early without using source data.
object.CreateTextFile(filename[, overwrite[, unicode]])
Parameters: object
Required option. Should be the name of the FileSystemObject or Folder object.
filename
Required option. Specifies the string expression of the file to be created.
overwrite
Optional. Boolean value, indicating whether existing files can be overwritten. The value is true if the file can be overwritten, otherwise false. If ignored, existing files cannot be overwritten.
unicode
Optional. Boolean value indicating whether the file is created as a Unicode or ASCII file. The value is true if the file is created as a Unicode file, and false if it is created as an ASCII file. If ignored, it is assumed to be an ASCII file.
illustrate
The following code shows how to use the CreateTextFile method to create and open a text file.
var fso = new ActiveXObject(Scripting.FileSystemObject);
var a = fso.CreateTextFile(c:testfile.txt, true);
a.WriteLine(This is a test.);
a.Close();
If the overwrite parameter is false or this parameter is not provided, an error will be generated for the existing filename.
Share: The system time obtained by ASP has morning and afternoon solutions The solution to calling Now() in the ASP program always displays the morning and afternoon: 1. This display is usually because the server is set like this. First check the time format: double-click the time in the taskbar, and the words "am" in the pop-up time and date are indeed displayed. Then go to the next step of setting; 2. Open the control panel, select the area and language options, and in the area options