Thanks so much.
You're the best guy ever.
You're best than my teachers, you explain everything so detailed! :)
Type: Posts; User: DeanWinchester
Thanks so much.
You're the best guy ever.
You're best than my teachers, you explain everything so detailed! :)
Now what I want to do is :
I want to read line by line.
After reading the first line,
I should read until the number is over and when this is done I should add the number to the key field in the...
72 .
16 ./.DS_Store
8 ./a
8 ./lerficheiro.c
8 ./o
24 ./so
8 ./so.c
File '/Users/machd/Desktop/SistemasOperativos2013/GuardaLinhas/merdas.txt' read successfully.
Thanks sir, worked just fine.
Hmm, understood.
Thanks so much.
Well, what's inside.
I got this piece of code to read what's inside the text file :
while(!feof(fp)){
fgets(buffer,200,fp);
What does (!fp) mean ?
It means the file wasn't opened with sucess or does it mean it was opened with sucess ? :o
Haha.
I have, every user has reading permissions :o
Followed your advice and I made it like this :
fp = fopen("/Users/machd/Desktop/SistemasOperativos2013/GuardaLinhas/merdas.txt","r");
if (!fp) {
printf("sucess");
}
...
Thanks, I'll study everything you said upfront.
Right now, I'm just reading the file, not into the hash table yet.
My code is the following :
char buffer[500];
FILE *fp=NULL;
fp =...
Now that I'm working with an hash table what would be a way of reading from the text file to it ?
I understood, this looks like a very good implementation by you.
Thanks so much.
I can always raise NKEYS depending on what Professor might say but that looks like a perfect hashtable, I'm...
Thanks for your awesome replies.
And no, it's not homework, it's something I need to deliver for a class in University and it's very very important, should be done to the perfection.
I email'ed...
I'm gonna stick with the first one, thanks.
How should I be doing the reading to key and info now ?
Thanks.
Hello everyone,
I have a textfile that looks like this :
64 .
16 ./.DS_Store
8 ./a
8 ./merdas.txt
8 ./o