File and stream-- fopen/fclose
# include
Int main (void)
{
FILE* fp = NULL
Fp = fopen ("abc.txt", "a +"); / / fopen (path, mode) calls the file abc.txtif (NULL = = fp) {printf ("fopen fail\ r\ n"); perror (");} else {fwrite (" hello filestream! ", 1,17, fp) / / fwrite (const char* string, size_t size, size_t nmem, fp) writes the string pointed by string to the file pointed to by fp. The size of a single write is size, and a total of nmem size uppercase content is written to fclose (fp);} return 0
}