Click or drag to resize

filePathOperationssaveStringToFile Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Saves complete string into path

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static FileInfo saveStringToFile(
	this string data,
	string path,
	getWritableFileMode mode = getWritableFileMode.overwrite,
	Encoding encoding = null
)
Request Example View Source

Parameters

data
Type: SystemString
path
Type: SystemString
mode (Optional)
Type: imbSCI.Data.enumsgetWritableFileMode
encoding (Optional)
Type: System.TextEncoding

Return Value

Type: FileInfo

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