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: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

FileSystem Class
FileSystem Members

Send Feedback