Click or drag to resize
FileOperationsSaveToFile Method
Distributed Algorithm Simulator
Opens a SaveFileDialog to allow user to save the file.

Namespace: DistributedAlgorithmSimulator
Assembly: DistributedAlgorithmSimulator (in DistributedAlgorithmSimulator.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static bool SaveToFile(
	string defFileName,
	string content,
	ref string errMsg
)

Parameters

defFileName
Type: SystemString
Default file name to save to.
content
Type: SystemString
Content to be saved.
errMsg
Type: SystemString
Error message. "SUCCESS" if no error.

Return Value

Type: Boolean
true, if file save was successfully, false otherwise.
Remarks
Valid file types: ".txt", ".log".
See Also