file class : Directory getter

Description

Gets an instance of the directory class that is the parent of the file.

Syntax

fileInstance.Directory

Arguments

None

Return value

ClassDescription
directoryParent directory of the file.

Sample code

1:

file f = new file("c:\somewhere...");

2:

directory parentDir = f.Directory;

Notes

It's a wrapper of the System.IO.FileInfo.Directory property.

Links for reference

Copyright © Cooker All rights reserved.