Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Computer Science - Folder Object Methods - Presentation - Diana, Study notes of Computer Numerical Control

Detail Summery about File SYSTEM OBJECT, Folder Object Methods, File Object Attributes, File Object Methods, To Write data to a Text File.

Typology: Study notes

2010/2011

Uploaded on 09/06/2011

nirmalya
nirmalya 🇮🇳

4.5

(2)

17 documents

1 / 17

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
FILE SYSTEM OBJECT
Folder Object Methods
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Computer Science - Folder Object Methods - Presentation - Diana and more Study notes Computer Numerical Control in PDF only on Docsity!

FILE SYSTEM OBJECT

Folder Object Methods

Folder Object Methods

1. Copy Method Copies the specified folder from one location to another. Syntax: object.Copy destination[, overwrite]

File Object Attributes

1. DateCreated This property gets the date and time that the file was created. Syntax: object.DateCreated 2. DateLastAccessed Gets the date and time that the file was last accessed. Syntax: object.DateLastAccessed

3. DateLastModified This property returns the date and time that the file was last modified. Syntax: object.DateLastModified 4. Drive Returns the drive letter of the drive where the file is located. Syntax: object.Drive 5. Name Lets us get or change the name of the specified file. Syntax: object.Name [ = newname]

File Object Methods

1. Copy Method This method copies the selected file to the specified destination. Syntax: object.Copy destination[, overwrite] 2. Delete Method The method used to delete the file relating to the specifie File object. Syntax: object.Delete [force]

3. Move Method This method is used to move the file relating to the specified File object to a new destination. Syntax: object.Move destination

TextStreamObject Methods

1. Close Method Closes a currently open TextStream file. Syntax: object.Close 2. Read Method This method reads the number of characters you specify from a Textstream file and returns them as a string. Syntax: object.Read(characters)

3. ReadAll Method This method reads the entire contents of a text file and returns it as a string. Syntax: object.ReadAll 4. ReadLine Method Reads a single line (excluding the newline character) from a TextStream file and returns the contents as a string. Syntax: object.ReadLine

Reading Functions

  • (^) ReadLine()
    • (^) Read an entire line (upto but not including the new line character.
  • (^) ReadAll()
    • (^) Reads entire content text file.

Drive Object Attributes

1. AvailableSpace Returns the amount of space available on the specified local or remote disk drive. Syntax: object.AvailableSpace 2. DriveLetter Returns the dirve letter of the specified local or remote disk drive. Read only. Syntax: object.DriveLetter

5. FreeSpace Returns the amount of free space available to a user on the specified local or remote drive. Syntax: object.FreeSpace 6. IsReady This property is a Boolean whose value is True if the specified drive is available for use and False otherwise. Syntax: object.IsReady 7. Path Returns the path for a specified file, folder or drive. Syntax: object.Path

8. TotalSize Property Returns the total space, in bytes, of the specified drive. Syntax: object.TotalSize 9. VolumeName Property Sets or returns the volume name of the specified drive. Syntax: object. VolumeName [ = newname]