[in] The data to write to the file specified by the path parameter.
path
[in] A string containing the path of existing file.
Description:
Writes the entire content (at once) of a file. This is the recommended function to use when working with small to medium files. (file sizes smaller than 50 megabytes. When using on large files, you'll have the entire file in the memory). For reading a file, you may want to check the ReadFile function.
Return value:
Returns true if the file was successfully written, false otherwise.