Function write (29/32)

Function write