Skip to content

Flush writer in StreamIniDataParser.WriteData - #259

Open
haraldrohan wants to merge 1 commit into
rickyah:release/2.6.0from
haraldrohan:fix/245-flush-writedata
Open

haraldrohan wants to merge 1 commit into
rickyah:release/2.6.0from
haraldrohan:fix/245-flush-writedata

Conversation

@haraldrohan

Copy link
Copy Markdown

WriteData writes to the supplied StreamWriter without flushing. Callers that keep the writer open can therefore see empty or incomplete output. FileIniParser.WriteFile is unaffected because it disposes the writer.

This adds writer.Flush() to both WriteData overloads, plus a test that checks the data is in the stream while the writer is still open.

Refs #245

🤖 Generated with Claude Code

WriteData wrote to the supplied StreamWriter without flushing, so callers
that keep the writer open could observe empty or incomplete output.

Refs rickyah#245

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant