wow, it worked.. Thank you very much! ^.^

Code:
#include<stdio.h>
#include<stdlib.h>

int main(void)
{
	FILE *testFile;
	int age;
	char name[40];

	system("cls");

	testFile = fopen("c:\\testFile.txt", "w");

	printf("\n\n\tEnter your name here: ");
	gets(name);

	printf("\tEnter your age here: ");
	scanf("%i", &age);


	fprintf(testFile, "The name you have inputed is: %s", name);
	fprintf(testFile, "\nYour age is: %i", age);

	fclose(testFile);

	system("notepad.exe c:\\testFile.txt");

	return 0;
}
...uhmmm, about the fgets() thing, I don't get it what you mean... sorry...