#include #include 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; }