Edit File: sg_write_buffer