fp = fileopen(fname, "at", ""); code example Example: fopen c FILE *fopen(const char *filename, const char *mode)