[This is preliminary documentation and is subject to change.]

The OCFile type exposes the following members.

Constructors

  NameDescription
Public methodOCFile

Methods

  NameDescription
Public methodStatic memberBreakUpFileParts
Breaks the file part in name, version and extension. he version name is designated as {filename}_rev{revision number}.{extension}. For example the file xxx.doc can have versions like xxx_rev1.doc, xxx_rev2.doc and so on.
Public methodStatic memberCreateDirectory
Creates a directory given the file path. This program creates the directory only if the directory does not exist.
Public methodStatic memberCreateFile
Creates an empty file
Public methodStatic memberDeleteFile
Removes the file
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetCharsFromFile
Gets the content of the file and load it into a character array.
Public methodStatic memberGetFileNameWithRevision
Returns the filename with revision encoded in it. This is useful int the document management system, when a new version of the file is generated
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Protected methodStatic memberGetRevision
Extracts the Revision from the file name
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsFileAvailable
Returns true if the file is available and is not locked. This method tries 100 iterations and comes out if the file could not be found.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberMoveFolder
Moving (or renaming) a folder loses the session variable in asp.net. So, this is an attempt to simulate the move method by a copy and delete. A mojor pain in the *** but there seems to be no other way to do it or is there...?
Public methodStatic memberReadTextFile
Reads data from the file in a string
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodStatic memberWriteTextFile
Writes data in the file

See Also