| ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class > FileGetLine Method : FileGetLine(String,String,Boolean,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.Boolean
true if need to remove empty source file after sampling; otherwise, false.
public static string FileGetLine( string path, string numberOfLine, bool removeLine, 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.Boolean
true if need to remove empty source file after sampling; otherwise, false.
Type: System.String
String after spliting and sampling.
string path = {pathToFile}; string numberOfLine = {numberOfLine}; bool removeLine = true; string result = FileSystem.FileGetLine(path, numberOfLine, removeLine);
$path = {pathToFile}; $numberOfLine = {numberOfLine}; $removeLine = true; $result = FileSystem::FileGetLine($path, $numberOfLine, $removeLine);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.