Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When doing append, CsvWriter should not open the file with StandardOpenOption.TRUNCATE_EXISTING mode, rather it would use StandardOpenOption.APPEND mode. #30

Closed
wants to merge 3 commits into from

Conversation

lancewoo
Copy link

@lancewoo lancewoo commented Nov 30, 2018

When doing append, CsvWriter should not open the file with StandardOpenOption.TRUNCATE_EXISTING mode, rather it would use StandardOpenOption.APPEND mode.

Otherwise, the contents of the existing file would be destroyed.

StandardOpenOption.TRUNCATE_EXISTING mode, rather it would use
StandardOpenOption.APPEND
mode.
Otherwise, the contents of the existing file would be destroyed.
@lancewoo lancewoo changed the title When doing append, CsvWriter should not open the file with When doing append, CsvWriter should not open the file with StandardOpenOption.TRUNCATE_EXISTING mode, rather it would use StandardOpenOption.APPEND mode. Nov 30, 2018
@stone-wall
Copy link

@osiegmar Is there any plan to merge this PR? Without this being merged, the CsvAppender class should probably be renamed to CsvLineWriter or something similar, as using the word append in the naming is somewhat misleading.

@osiegmar
Copy link
Owner

Functionality will change in version 2.0 rewrite and tracked by #24.

@osiegmar osiegmar closed this Jan 19, 2020
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.

3 participants