The SalFileHandle type exposes the following members.

Methods

  NameDescription
Public methodClose
Closes a file.
Public methodStatic memberCopy
Copies the contents of one file (source) to another file (destination).
Public methodStatic memberCreateDirectory
Creates a directory.
Public methodEquals
Overrides the Object.Equals() method.
(Overrides ValueType..::..Equals(Object).)
Public methodStatic memberFromHandle
Returns the SalFileHandle object from the handle
Public methodGetChar()()()()
Returns the next character in an open file.
Public methodGetChar(SalNumber%)
Returns the next character in an open file.
Public methodStatic memberGetCurrentDirectory
Gets the full path name of the current working directory.
Public methodStatic memberGetDateTime
Gets the modification date and time of the specified file.
Public methodStatic memberGetDrive
Gets the letter of the default (current) disk drive.
Public methodGetHashCode
Overrides the Object.GetHashCode() method
(Overrides ValueType..::..GetHashCode()()()().)
Public methodGetObjectData
Public methodGetString(Int32)
Returns the next line from an open file. Lines are terminated by \r\n or \r or \n
Public methodGetString(SalString%, Int32)
Returns the next line from an open file. Lines are terminated by \r\n or \r or \n
Public methodOpen
Opens, re-opens, creates, or deletes a file.
Public methodPutChar
Writes a character to an open file.
Public methodPutString
Writes a string to an open file.
Public methodRead(Int32)
Reads a buffer of characters from an open file to a string .
Public methodRead(SalString%, Int32)
Reads a buffer of characters from an open file to a string .
Public methodStatic memberRemoveDirectory
Deletes a directory.
Public methodSeek
Positions the file pointer in an open file. The next file operation (such as a read or write) takes place at this new location.
Public methodStatic memberSetCurrentDirectory
Changes the current working directory. If the specified path does not contain a drive letter, the default drive's current directory is changed. Otherwise, the specified drive's current directory is changed and the specified drive is made the current drive.
Public methodStatic memberSetDateTime
Sets the modification date and time of the specified file.
Public methodStatic memberSetDrive
Sets the current disk drive to the specified drive letter.
Public methodTell
Returns the current position in an open file.
Public methodWrite
Writes a string to an open file.

Operators

  NameDescription
Public operatorStatic memberEquality(SalFileHandle, SalFileHandle)
== operator for comparing two SalFileHandle objects
Public operatorStatic memberEquality(SalFileHandle, SalWindowHandle)
== operator for comparing a SalFileHandle to a SalWindowHandle
Public operatorStatic memberEquality(SalWindowHandle, SalFileHandle)
== operator for comparing a SalFileHandle to a SalWindowHandle
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(SalFileHandle to SalWindowHandle)
Converts a SalFileHandle object into a SalWindowHandle.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(SalWindowHandle to SalFileHandle)
Converts a SalWindowHandle to a SalFileHandle.
Public operatorStatic memberFalse
logical FALSE operator for boolean expressions
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(SalFileHandle to Boolean)
Automatic casting from SalFileHandle to boolean
Public operatorStatic memberInequality(SalFileHandle, SalFileHandle)
!= operator for comparing two SalFileHandle objects
Public operatorStatic memberInequality(SalFileHandle, SalWindowHandle)
!= operator for comparing a SalFileHandle to a SalWindowHandle
Public operatorStatic memberInequality(SalWindowHandle, SalFileHandle)
!= operator for comparing a SalFileHandle to a SalWindowHandle
Public operatorStatic memberLogicalNot
! boolean NOT operator
Public operatorStatic memberTrue
logical TRUE operator for boolean expressions

Fields

  NameDescription
Public fieldStatic memberNull

Properties

  NameDescription
Public propertyFileStream
Returns the wrapped FileStream object.
Public propertyHandle
Returns the handle for this SalFileHandle object
Public propertyIsBinary
Returns true if the file was opened in binary mode.
Public propertyIsNull
Checks if this SalFileHandle object contains a null value.
Public propertyLastError
Returns the last error code.

See Also