Home Notices Documents Classes Download Others Rice
Classes  >  file  >  Name
file class : Name getter

Description

Gets a name of the file.

Syntax

fileInstance.Name

Arguments

None

Return value

ClassDescription
stringName of the file.

Sample code

1:

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

2:

string name = f.Name;

Notes

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

The name of the file includes the file extension.

Links for reference

Copyright © Rice All rights reserved.