Home > @infiniteobjects/core-library-node > FileSystem > writeFile
Atomically writes data to a file, replacing the file if it already exists.
Signature:
static writeFile(filePath: string, data: string): Promise<void>;
Parameter | Type | Description |
---|---|---|
filePath | string | |
data | string |
Returns:
Promise<void>
Creates directories for you as needed.