#include <stdio.h> int main () { FILE *file; char c; file = fopen ("my.txt","w"); if (file!=NULL) { for (c = 'a' ; c <= 'z' ; c++) { fputc (c , file); } fclose (file); } return 0; }