Search:

Type: Posts; User: DeanWinchester

Search: Search took 0.01 seconds.

  1. Replies
    26
    Views
    2,904

    Thanks so much. You're the best guy ever....

    Thanks so much.
    You're the best guy ever.
    You're best than my teachers, you explain everything so detailed! :)
  2. Replies
    26
    Views
    2,904

    Now what I want to do is : I want to read line...

    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...
  3. Replies
    26
    Views
    2,904

    72 . 16 ./.DS_Store 8 ./a 8 ./lerficheiro.c...

    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.
  4. Replies
    26
    Views
    2,904

    Hmm, understood. Thanks so much. Well, what's...

    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);
  5. Replies
    26
    Views
    2,904

    What does (!fp) mean ? It means the file wasn't...

    What does (!fp) mean ?
    It means the file wasn't opened with sucess or does it mean it was opened with sucess ? :o
  6. Replies
    26
    Views
    2,904

    Haha. I have, every user has reading permissions...

    Haha.
    I have, every user has reading permissions :o
  7. Replies
    26
    Views
    2,904

    Followed your advice and I made it like this : ...

    Followed your advice and I made it like this :


    fp = fopen("/Users/machd/Desktop/SistemasOperativos2013/GuardaLinhas/merdas.txt","r");
    if (!fp) {
    printf("sucess");
    }

    ...
  8. Replies
    26
    Views
    2,904

    Thanks, I'll study everything you said upfront....

    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 =...
  9. Replies
    26
    Views
    2,904

    Now that I'm working with an hash table what...

    Now that I'm working with an hash table what would be a way of reading from the text file to it ?
  10. Replies
    26
    Views
    2,904

    I understood, this looks like a very good...

    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...
  11. Replies
    26
    Views
    2,904

    Thanks for your awesome replies. And no, it's...

    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...
  12. Replies
    26
    Views
    2,904

    I'm gonna stick with the first one, thanks. ...

    I'm gonna stick with the first one, thanks.

    How should I be doing the reading to key and info now ?

    Thanks.
  13. Replies
    26
    Views
    2,904

    Reading textfile

    Hello everyone,

    I have a textfile that looks like this :


    64 .
    16 ./.DS_Store
    8 ./a
    8 ./merdas.txt
    8 ./o
Results 1 to 13 of 13