hi
i am writting a program that takes in the input of your html, and proceses it into a .html file called "program". But instead of a code being generated from the user, it just makes one character appear. can someone please help me? heres the code:
thanks in advance!Code:#include <stdio.h> int a; FILE * tvFile; main() { tvFile = fopen("c:\\program.html", "w"); printf("Type in you html, this will then be put into the directory c:\\program.html"); scanf("%c",&a); char html=a; fprintf(tvFile,"%c",html); fclose(tvFile); return 0; }



LinkBack URL
About LinkBacks



ok i have incoorperated fgets(). AND IT WOKRED!!! but now i want to add soemthing where the user choses the name of the .html file. i have tried this, but it doesnt work, can someine help me imorove this code??