| ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class > FileGetLines Method : FileGetLines(String,String,Boolean,String,String,Boolean) Method |
Type: System.String
Path to the source file.
Type: System.String
The number of the line.
Type: System.Boolean
true if remove the used line; otherwise, false.
Type: System.String
Regular expression to parse the line.
Type: System.String
Number of match after parsing.
Type: System.Boolean
true if need to remove empty source file after sampling; otherwise, false.
public static string[] FileGetLines( string path, string numberOfLine, bool removeLine, string regex, string numberOfMatch, bool removeEmptyFile )
Type: System.String
Path to the source file.
Type: System.String
The number of the line.
Type: System.Boolean
true if remove the used line; otherwise, false.
Type: System.String
Regular expression to parse the line.
Type: System.String
Number of match after parsing.
Type: System.Boolean
true if need to remove empty source file after sampling; otherwise, false.
Type: System.String
Strings after spliting and sampling.
string path = {pathToFile}; string numberOfLine = {numberOfLine}; bool removeLine = true; string regex = {regularExpression}; string numberOfMatch = {numberOfMatch}; string[] result = FileSystem.FileGetLines(path, numberOfLine, removeLine, regex, numberOfMatch);
$path = {pathToFile}; $numberOfLine = {numberOfLine}; $removeLine = true; $regex = {regularExpression}; $numberOfMatch = {numberOfMatch}; $result = FileSystem::FileGetLines($path, $numberOfLine, $removeLine, $regex, $numberOfMatch);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.