Overview of methods and properties of the FSO object

Source: Internet
Author: User
Tags readline
Fso| Object 1. File access component Common Object list

FileSystemObject contains almost all the methods for working with files and folders
TextStream is primarily used to access text files
File This object's methods and properties can handle a single file
Folder This object's methods and properties can handle folders

Method of 2.FileSystemObject
CreateTextFile
OpenTextFile
GetFile returns a File object
CopyFile
MoveFile
DeleteFile
FileExists determine if a file exists
GetFolder
CreateFolder
CopyFolder
MoveFolder
DeleteFolder
FolderExists determine if a folder exists

Methods of 3.TextStream objects
Close is used to shut down an open data flow file and its corresponding text file, syntax:
TextStream object. Close ()
Read is used to start from the current position of the cursor, reading a certain character from an open text file
Number, Syntax: TextStream object. Read (Charactersnum)
Charactersnum: Specifies the number of characters you want to read
ReadAll is used to read all the data in an Open data flow file
Syntax: String=tstream.readall
String: Returns a string that, if it is a large file, will cause
Waste of memory
ReadLine is used to read a row of data in an Open data flow file
Syntax: String=tstream.readline
String: Returns a string
Skip used to skip the number of characters in an Open Data flow file
Syntax: Tstream.skip (characters)
Characters: Specifies the number of characters you want to read
SkipLine used to skip an entire row of data in an Open data flow file
Syntax: Tstream.skipline
Write is used to write data to an open data stream file
Syntax: Tstream.write (String)
WriteLine is used to write an entire row of data to an open data stream file
Syntax: Tstream.writeline ([string])

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.