import { Buffer } from "https://deno.land/std@0.104.0/node/buffer.ts";
Writes string to buf at offset according to the character encoding in encoding. The length parameter is the number of bytes to write. If buf did not contain enough space to fit the entire string, only part of string will be written. However, partially encoded characters will not be written.