[This is preliminary documentation and is subject to change.]
The OCFile type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | OCFile |
Methods
Name | Description | |
---|---|---|
![]() ![]() | BreakUpFileParts |
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.
|
![]() ![]() | CreateDirectory |
Creates a directory given the file path. This program creates the directory
only if the directory does not exist.
|
![]() ![]() | CreateFile |
Creates an empty file
|
![]() ![]() | DeleteFile |
Removes the file
|
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetCharsFromFile |
Gets the content of the file and load it into a character array.
|
![]() ![]() | GetFileNameWithRevision |
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
|
![]() | GetHashCode | 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.) |
![]() ![]() | GetRevision |
Extracts the Revision from the file name
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IsFileAvailable |
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.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | MoveFolder |
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...?
|
![]() ![]() | ReadTextFile |
Reads data from the file in a string
|
![]() | ToString | Returns a String that represents the current Object. (Inherited from Object.) |
![]() ![]() | WriteTextFile |
Writes data in the file
|