Search:

Type: Posts; User: mike112358

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,418

    Around 20 rows is a bit vague. In the code I...

    Around 20 rows is a bit vague. In the code I posted, I just needed 19 rows, but depending on the file I am reading in, it could be a few more or less. So far, I've been counting the number of rows...
  2. Replies
    13
    Views
    1,418

    Thanks tabstop, that fixed it.

    Thanks tabstop, that fixed it.
  3. Replies
    13
    Views
    1,418

    I noticed that was happening, but I'm not sure...

    I noticed that was happening, but I'm not sure how I would put read as the while test. Could you show me what that would look like?
  4. Replies
    13
    Views
    1,418

    Thanks for the help everyone! In case anyone has...

    Thanks for the help everyone! In case anyone has the same problem, my code now looks like this:

    relevant part is lines 28-45



    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
  5. Replies
    13
    Views
    1,418

    Thanks! I've managed to get fgets partially...

    Thanks!
    I've managed to get fgets partially working- it scans one line then stops. How would I make it scan the whole file?
  6. Replies
    13
    Views
    1,418

    how to read info from text file?

    Hi, I'm a beginner at programming and I'm not sure how to read in information from a text file. What I want to do is take a text file which contains around 20 rows and 3 columns of numbers, and put...
Results 1 to 6 of 6