Enumerates all lines from a file with the passed in fileName.

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.IO
Assembly: Eas.WebCrawler.Common (eas.webcrawler.common.dll)

See Also

TextLineEnumerator Class | TextLineEnumerator Members | Eas.WebCrawler.Common.IO Namespace