file()
file
File manipulation command.
file(WRITE <filename> <content>...) file(APPEND <filename> <content>...)
Write <content>
into a file called <filename>
. If the file does not exist, it will be created. If the file already exists, WRITE
mode will overwrite it and APPEND
mode will append to the end. (If the file is a build input, use the configure_file()
command to update the file only when its content changes.)
file(READ <filename> <variable> [OFFSET <offset>] [LIMIT <max-in>] [HEX])
Read content from a file called <filename>
and store it in a <