Search:

Type: Posts; User: whiteflags

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    9,118

    while (1) { fscanf(.....) ...

    while (1)
    {
    fscanf(.....)
    ...
    if (feof(cad)) break;
    }

    No.

    You don't really want to do all the "..." if fscanf() put cad into EOF state, such that...
  2. Replies
    4
    Views
    9,118

    Either method like breaking a string apart or...

    Either method like breaking a string apart or just using fscanf should work. Your code has two problems that both must be fixed: first, your using feof() wrongly as this page explains.

    Secondly,...
Results 1 to 2 of 2