All pastes #898103 Raw Edit

Something

public text v1 · immutable
·published 2008-02-10 02:02 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  FILE * fp;
  char filename[] = "test.ini";
  fp = fopen (filename, "r");
  if (fp == NULL) {
    printf ("error: file not found");
    exit (1);
  }
  int getme;
  getme = fgetc (fp);
  printf ("Got this: %s", getme);
  fclose (fp);
  return 0;
}