Click or drag to resize

folderNodeSaveText Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Saves the content string as text file. Returns path with filename specified. Optionally, sets fileDescription for directory readme generator

Namespace:  imbSCI.Core.files.folders
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public string SaveText(
	string content,
	string filename,
	getWritableFileMode mode = getWritableFileMode.none,
	string fileDescription = "",
	bool updateExistingDesc = false
)
Request Example View Source

Parameters

content
Type: SystemString
The textual content to be saved
filename
Type: SystemString
The filename, if has no extension it will set .txt
mode (Optional)
Type: imbSCI.Data.enumsgetWritableFileMode
The mode.
fileDescription (Optional)
Type: SystemString
The file description - if not specified, it will try to improvize :)
updateExistingDesc (Optional)
Type: SystemBoolean
if set to true it will force update if any existing file description was found. RegisterFile(String, String, Boolean)

Return Value

Type: String
The path
Remarks
This method calls: pathFor(String, getWritableFileMode, String, Boolean) and then uses WriteAllText(String, String) to save the file.
See Also