KerbalDataExtension WriteToFile Method KerbalData - KSP Data Unlocked!
Writes string content directly to file

Namespace: KerbalData
Assembly: KerbalData (in KerbalData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static string WriteToFile(
	this string str,
	string filePath
)

Parameters

str
Type: OnlineSystem String
string instance to use
filePath
Type: OnlineSystem String
file path (relative to run path or absloute) to store the data, exsiting files will be overwritten

Return Value

string provided and written to file. Used for debugging and convienance methods.

Usage Note

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