Search Results for

    Show / Hide Table of Contents

    Class StringToFileWriter

    IO Utility class to write to file that implements IDisposable interface.

    Suggest to use this objects of this class within the using keyword so that file-resources are automatically freed in case your code is terminated before it has completed.

    Inheritance
    object
    StringToFileWriter
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TimeSeriesAnalysis.Utility
    Assembly: TimeSeriesAnalysis.dll
    Syntax
    public class StringToFileWriter : IDisposable

    Constructors

    | Edit this page View Source

    StringToFileWriter(string)

    Constructor with local encodign

    Declaration
    public StringToFileWriter(string filename)
    Parameters
    Type Name Description
    string filename
    | Edit this page View Source

    StringToFileWriter(string, Encoding)

    Constructor with specific encoding

    Declaration
    public StringToFileWriter(string filename, Encoding encoding)
    Parameters
    Type Name Description
    string filename

    file to be creates

    Encoding encoding

    text encoding format

    Methods

    | Edit this page View Source

    Close()

    Close file handles

    Declaration
    public bool Close()
    Returns
    Type Description
    bool
    | Edit this page View Source

    CreateDirectoryStructure(string)

    creates directory on path if it does not exist

    Declaration
    public void CreateDirectoryStructure(string FilePath)
    Parameters
    Type Name Description
    string FilePath
    | Edit this page View Source

    Dispose()

    Disposes

    Declaration
    public void Dispose()
    | Edit this page View Source

    Dispose(bool)

    Dispose

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    | Edit this page View Source

    Write(string)

    Write a single line of text

    Declaration
    public void Write(string text)
    Parameters
    Type Name Description
    string text

    Implements

    IDisposable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX