HI guys,
Can anyone tell me how to find and delete numbers from a text file. This is what I have so far
Code:
int main(){
char c, filename[10]; FILE *fp;
printf("Eneter a filename");
scanf("%s", filename);
if((fp=fopen(filename, "r")) !=NULL)
while ((c=fgetc(fp)) !=EOF)
fputc(c, stdout);
else
printf("could not open file ", filename);
char Regex;
char regMatch[] = " ";//string to search for inside of text file. It is case sensitive.
if (Regex.IsMatch(filename,regMatch))//If the match is found in allRead
{
printf("found\n");
}
else
{
printf("not found\n");
}
}