Hello,
I have been struggling to figure out how to read a string line by line. Everything I have found is about reading files not variables. I want to use something like fgets but fgets needs a file pointer as input. Is there a way use fgets for a loc...
Thank you I figured it out but now I have another problem. It wasn't spaces but realpath is adding v at the end instead of the path
v mnt c Users ... Project2 test
mnt c Users ... Project2 v
and this is causing it not to work. Do you have any idea ...
Hi, I was doing the project and I kept getting errors about opening directories and I soon found out that it was because my directory names have spaces in them. Is there a way to solve this? I tried just adding quoted in the command line but when I t...
For the second prompt for building a file it mentions the names of files will be given by a filelist in the command prompt. I am unsure about what sort of formatting the filelist will have. Will the names of the files be space separated, comma separa...
Are the words that can be stored in the dictionary words that are valid in a dictionary of words or any sequence of characters? (would you store something like jdskjdku). If it is just any sequence of characters, the task has outlined that it is onl...
In the task it says the index file should be stored as a compressed file. The first thing that came to my mind was a hashtable. Does this count as a compressed file? I'm not sure about what a compressed file means. Thank you
Can a program have a runtime value of 0 in the estimates file. I discovered that if there would be 0 or negative value it would mess up my program. Should I throw an error if I see this? Thank you
I'm storing many of my values into int arrays but since there can also be I don't know what value I should use to store them. I'm thinking of -1 or NULL but would be wondering if there would be an issue with either of these (convention or otherwise...
Aaah sorry, your message didn't come up. Thank you for the response. I did try fflush and it still didn't work. I will try out setbuf( stdout, NULL );
Thank you
Hello,
I am having a weird error with my print statements where when I do printf(" c", ch); nothing prints on the screen but when I do printf(" c n", ch); all the characters print a line apart. Do you have any idea why this might occur. I can confirm ...
When reading a file I have seen some places check for an EOF byte and some check for NULL byte. Are these the same thing and if not, what are the differences and which is preferred to use?
Thank you