How should I concatenate the characters read from a file with fgetc to determine if it is a number, keyword or an identifier?
The problem is that, for example, the number 555 must be one and 5 and 5 and 5 as words must be jose and not character by character; besides I have problems with the blanks.
if (( f1 = fopen ( " ard.txt " , "r" ) ) == NULL)
{
printf ( "Error opening file !");
while (( c = fgetc ( f1 ) )! = EOF )
{
if ( isdigit ( c ) )
printf ( "% c is a number" , c ) ;
}