Parameters
- path
Type: System.String
Path to the file.
Return Value
Type: System.Int32
Count of lines in the file.
The following example shows call the FileCountOfLines method.
| C# | Copy Code |
|---|---|
string path = {pathToFile}; string countOfLines = FileSystem.FileCountOfLines(path); | |
| PHP | Copy Code |
|---|---|
$path = {pathToFile}; $countOfLines = FileSystem::FileCountOfLines($path); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family