So guys I have a file with various lines such as "GAME: 1 Bob (@) - 404" the name of the player is Bob and his highest score is 404 and there are many lines like this. Basically I have to read each line and see who has the highest score and print his name and score out in c. So far I have this:
  FILE *fp;
  char * line = NULL;
  size_t len = 0;
  size_t read;
  fp - fopen("Leaderboard.dat", "r");
  if (fp == NULL) {
  printf("File empty/unable to open");
  }
now im actually not sure how to do this properly..
 
    