Click or drag to resize

filePathOperationsopenFileToList Method (FileInfo, 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 FileInfo _file,
	bool skipEmptyLines,
	Encoding encoding = null
)
Request Example View Source

Parameters

_file
Type: System.IOFileInfo
File to open
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 FileInfo. 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