writefile writefile(path: string, contents: string): () Writes a file, creating parent folders as needed. Binary safe.