Click or drag to resize

filePathOperationsopenFileToList Method (String, Boolean, Encoding)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Opens the file to string list

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static List<string> openFileToList(
	this string _path,
	bool skipEmptyLines,
	Encoding encoding = null
)
Request Example View Source

Parameters

_path
Type: SystemString
The path.
skipEmptyLines
Type: SystemBoolean
if set to true [skip empty lines].
encoding (Optional)
Type: System.TextEncoding
The encoding.

Return Value

Type: ListString
List of lines from loaded string

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also