ZennoLab Assemblies Documentation
FileCountOfLines Method
See Also  Example Send Feedback
ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class : FileCountOfLines Method
path

Type: System.String

Path to the file.

Glossary Item Box

Get count of lines in the file

Syntax

C# 
public static string FileCountOfLines( 
   string path
)

Parameters

path

Type: System.String

Path to the file.

Return Value

Type: System.Int32

Count of lines in the file.

Example

The following example shows call the FileCountOfLines method.
C#Copy Code
string path = {pathToFile};
string countOfLines = FileSystem.FileCountOfLines(path);
PHPCopy Code
$path = {pathToFile};
$countOfLines = FileSystem::FileCountOfLines($path);

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.