Nevron Open Vision Documentation
Nevron.Nov.IO Namespace / NFile Class / WriteAllTextAsync Method / WriteAllTextAsync(String,NEncoding,Boolean) Method
The text to write.
The text encoding to use.
Determines whether to include byte order mark (BOM) or not.


In This Topic
    WriteAllTextAsync(String,NEncoding,Boolean) Method
    In This Topic
    Writes the given text to the file using the specified encoding. Optionally writes a byte order mark (BOM).
    Syntax
    'Declaration
     
    
    Public Overloads Function WriteAllTextAsync( _
       ByVal text As System.String, _
       ByVal encoding As NEncoding, _
       ByVal includeBom As System.Boolean _
    ) As NPromise(Of NUndefined)
    'Usage
     
    
    Dim instance As NFile
    Dim text As System.String
    Dim encoding As NEncoding
    Dim includeBom As System.Boolean
    Dim value As NPromise(Of NUndefined)
     
    value = instance.WriteAllTextAsync(text, encoding, includeBom)
    public NPromise<NUndefined> WriteAllTextAsync( 
       System.string text,
       NEncoding encoding,
       System.bool includeBom
    )

    Parameters

    text
    The text to write.
    encoding
    The text encoding to use.
    includeBom
    Determines whether to include byte order mark (BOM) or not.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also