Netherbeast
Programmer
I'm trying to get the Decimal value of an Ascii char being read by fgetc() like this...
int theChar = 0;//the character being read
FILE *fp = fopen("poly.txt", "r"//file being read
while(theChar=fgetc(fp) != EOF) {
printf("theChar=%d\n", theChar);
}
but when it prints, it only prints the value 1.
I'm just a begining programmer and don't understand everything yet. Pointers are hard for me too.
Netherbeast
int theChar = 0;//the character being read
FILE *fp = fopen("poly.txt", "r"//file being read
while(theChar=fgetc(fp) != EOF) {
printf("theChar=%d\n", theChar);
}
but when it prints, it only prints the value 1.
I'm just a begining programmer and don't understand everything yet. Pointers are hard for me too.
Netherbeast