help pleaase.
#include <stdio.h>
int main(void)
{
char fname[20];
char text[30];
FILE * myfile;
printf("Enter File name");
myfile = fopen(fname,"w");
gets(fname);
printf("Enter you text here");
gets(text);
fclose(myfile);
return 0;
}
*** EDIT ***
Please use code tags when posting code.
This post has been edited by GunnerInc: 21 March 2013 - 03:56 PM
Reason for edit:: Added code tags

New Topic/Question
Reply



MultiQuote







|