ZennoLab Assemblies Documentation
FileCountOfLines Method
Example 

Type: System.String

Path to the file.

Get count of lines in the file
Syntax
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.
string path = {pathToFile};
string countOfLines = FileSystem.FileCountOfLines(path);
$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, Windows Seven

See Also

Reference

FileSystem Class
FileSystem Members

Send Feedback