Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ` #include <stdio.h>
- int main()
- {
- int MazeMatrix[64];
- int i;
- FILE *mazefile; //created a pointer named mazefile
- mazefile = fopen("m5.txt","r");
- if (mazefile == NULL)
- {
- printf("Didn't work");
- }
- for (i = 0; i < 32; i++)
- {
- fscanf_s(mazefile, "%d", &MazeMatrix[i]);
- }
- printf("%d", &MazeMatrix);
- }`
Add Comment
Please, Sign In to add comment