Utilities for writing and appending files.