while(fscanf(fp,"%d\n", Array++) != EOF) { printf("Loading Array[%d] = %d\n",i++,*(Array -1)); } // Prints correct values and stores the first element correctly, // but Array[1]->Array[n] are zero.