Skip to content

Add a block support to SugarUtils::File.write #3

@acant

Description

@acant

I want to add this to support write out a file in chunks, while still providing all the best practices for opening and writing to the file:

SugarUtils::File.write(filename) do |file|
  file.write(chunk1)
  file.write(chunk2)
end

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