Skip to content

File.AppendText() does not open the file for Append #1659

@dcyonce

Description

@dcyonce

Library/API/IoT binding

nanoFramework.System.IO.FileSystem

Visual Studio version

No response

.NET nanoFramework extension version

No response

Target name(s)

ESP32-S3

Firmware version

1.12.4.187

Device capabilities

No response

Description

The following line does not open the File for File.Append. It opens it for File.OpenWrite
File.AppendText(filename)

Code from Assembly System.IO.FileSystem

public static StreamWriter AppendText(string path)
{
    path = Path.GetFullPath(path);
    return new StreamWriter(OpenWrite(path));
}

How to reproduce

No response

Expected behaviour

No response

Screenshots

File.AppendText(filename) should open the File for Append mode instead of Write mode

Sample project or code

No response

Aditional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions