Declaration Syntax
Public Shared Function Create( _
ByVal fileName As String, _
ByVal stripEmptyLines As Boolean, _
ByVal stripComments As Boolean _
) As IEnumerable`1
public static IEnumerable`1<string> Create(
string fileName,
bool stripEmptyLines,
bool stripComments
);
public: static IEnumerable`1 Create(
String fileName,
bool stripEmptyLines,
bool stripComments
);
public static function Create(
fileName : String,
stripEmptyLines : Boolean,
stripComments : Boolean
) : IEnumerable`1;
Parameters
- fileName
- The name of the rtext file from with lines of text will be read.
- stripEmptyLines
- Whether or not to strip empty lines.
- stripComments
- Whether or not to strip lines starting in c#-style one-line comments ('//').
Return Value
An enumeration of each line in the file.Remarks
The underlying System.IO.StreamReader will not close until all items have been enumerated. This will leave a lock on the underlying file until the enumeration completes.Requirements
Namespace: Eas.WebCrawler.Common.IOAssembly: Eas.WebCrawler.Common (eas.webcrawler.common.dll)