Lol, I know, that's how I originally had it, but I wasn't sure if fgetc would reiterate correctly if it was in the while clause so I took it out and once the program worked as I wanted, I just left...
Type: Posts; User: taemex
Lol, I know, that's how I originally had it, but I wasn't sure if fgetc would reiterate correctly if it was in the while clause so I took it out and once the program worked as I wanted, I just left...
Okay, I figured it out completely if anyone is interested. I can't seem to edit old post after awhile it seems:
/*
============================================================================
...
Incredible, that was it! Thank you so much WoodSTokk! Now all I have to figure out is how to get fgets to not stop after the first \n line, but to continue reading to eof and output the value of each...
Satya, thank you for your reply,
Changing %1d to %1c:
Changing stringCH to type char:
Identical errors if only one changed or both.
Okay, so I figured out that I was using an array and that's not what I want. So I changed my code based on some examples I found in my workbook and on StackOverflow, but it still does not work!?!...
Each line has some random sentence I wrote in, and pasted several times. When fgets runs, it indeed takes the second latter, "a" in this case, and counts all of the 'a's on one line and outputs how...
Oh, I didn't realize that about arrays. According to my teacher, putting BUFSIZ in the buffer size makes the character size maximum, and from the code we've compiled in her class, it seems to work. I...
Hi,
I'm currently taking a class at my local college and the assignment is for me to retrieve data from a text file and count the number of 'a's, 'c's, 'g's, and 't's in the text file. When I run...