System.Yaml.YamlNode.ToYamlFile C# (CSharp) Method

ToYamlFile() public method

Convert YamlNode to a YAML text and save it to the file.
public ToYamlFile ( string FileName, YamlConfig config ) : void
FileName string Name of the file to output
config YamlConfig YAML configuration to customize serialization.
return void
        public void ToYamlFile(string FileName, YamlConfig config)
        {
            using ( var s = new FileStream(FileName, FileMode.Create) )
                DefaultPresenter.ToYaml(s, this, config);
        }

Same methods

YamlNode::ToYamlFile ( string FileName ) : void