#include #include // Demonstrates reading the first two ints from a text file int main() { FILE *in; // file pointer int a, b; in = fopen("data.txt", "r"); // open the file for reading fscanf(in, "%d %d", &a, &b); // read two ints printf("%d %d\n", a, b); // print the two ints fclose(in); // close the file system("pause"); }