/ Published in: C
Expand |
Embed | Plain Text
/* bspl0073.c */#include <stdio.h> #include <string.h> int main(int argc; const char *argv[];) { FILE *stream; char zeile[81], dateiname[67]; int zeilen=0; gets(dateiname); if((stream = fopen(dateiname,"w")) == NULL) { exit(1); } gets(zeile); /*(1)*/ while(strlen(zeile) > 0) { fprintf(stream,"%s\n",zeile); /*(2)*/ zeilen++; gets(zeile); } fclose(stream); }
You need to login to post a comment.
