Home icon indicating copy to clipboard operation
Home copied to clipboard

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

Open dcyonce opened this issue 1 year ago • 1 comments

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

dcyonce avatar Jul 23 '25 22:07 dcyonce

Several changes have been added since, including moving to newer IDF. Care to retest and report here?

josesimoes avatar Jul 24 '26 17:07 josesimoes