ok, Thank you very much for your help...
Code:
#include <stdio.h>
#include <conio.h>
int main ()
{
FILE * testFile;
int age;
char name [40];
clrscr();
testFile = fopen ("testFile.txt","w");
printf("Enter your name here: ");
gets(name);
printf("Enter your age: ");
scanf("%i", &age);
fprintf (testFile, "The name you have inputed is: %s", name);
fprintf (testFile, "\nYour age is: %i", age);
fclose (testFile);
return 0;
}
...hmmm, how am I going to open this file, automatically, right after the user presses any key.. I mean, to pop it up on the screen, the result?
thanks... -_+