FileOperationsSaveToFile Method |
Distributed Algorithm Simulator
Opens a SaveFileDialog to allow user to save the file.
Namespace: DistributedAlgorithmSimulatorAssembly: DistributedAlgorithmSimulator (in DistributedAlgorithmSimulator.exe) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic 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:
Booleantrue, if file save was successfully,
false otherwise.
RemarksValid file types: ".txt", ".log".
See Also