FILE * fp = fopen ("test.bin", "wb"); fwrite (A, sizeof (double), SIZE, fp); fclose (fp); // Read the double values into array B. double B [SIZE]; fp = fopen ("test.bin", "rb"); // Set the file position indicator in front of third double value. if (fseek (fp, sizeof (double) * 2L, SEEK_SET)! = 0) {fprintf (stderr, "fseek() failed in file %s at .