Code:
#include<stdio.h>
int main()
{
int a, b;
int input;
FILE* outfile;
char filename[80];
printf("Enter Filename: ");
gets(filename);
outfile = fopen(filename, "w");
scanf("%d", &input);
fprintf(outfile, "%d\n",input );
fclose(outfile);
}
thats what ive done so far...I understand the logic behind this "If you're outside a tag, look for a '<', which would involve changing to mode inside-a-tag. If you're inside a tag, look for a ' or ", which would make the mode inside-an-attribute" But I don't know how to write it out.
Help, Anybody?