Fwrite c
Fwrite cppreference
Questions in this topic
Does Fopen create file PHP?
What is Fseek used for?
What is the use of fopen?