home *** CD-ROM | disk | FTP | other *** search
- main() /* fputs.c -- fputs() sends a character string to a file */
- {
- int ret;
- FILE *fi, *fo;
- char c, source[50], dest[50];
-
- printf("test filename? ");
- gets(source);
- fi = fopen(source, "w+");
- ret = fputs("abcdefghijklmnopqrstuvwxyz", fi);
- fclose(fi);
- puts("Done");
- }