```
#include <stdio.h>
#include <stdlib.h>

int main() {

int *width;
int *height;
int row;
int column;
int character;
int count;
int pictureit;
double i = 0;
FILE *fp;

char file[50]; 
char line[25]; // assume each line has max 25 characters 

printf("What file should we pull from: ");
scanf("%s", file);

//read file using File pointer

fp = fopen(file, "r");

// read the first line in the file 
fgets(line, sizeof(line), fp);

width = strtok(line,"x");
height = strtok(NULL, "/0");

// read all the future lines in the file excluding the first 
while (fgets(line, sizeof(line), fp)) {

row = strtok(line, ",");
column = strtok(NULL, ",");
character = strtok(NULL, ",");
count = strtok(NULL, "/0");

if(i < count) {

**printf("%s", pictureit[row][column] = character);**

i++;

}
}
fclose(fp);

return 0;
}

```

I'm pulling in a file with this kind of setup 

```
75x53
0,36,.,1
0,37,M,1
1,32,.,1
1,33,:,1
1,34,A,1
1,35,M,2
1,37,O,1
1,38,:,1
2,23,.,1
2,24,:,1
2,25,A,1
2,26,M,5

```

I've been brainstorming for a while. How would I go about displaying this on the console? It obviously needs to go into a 2d array. The program needs to know the height and width of the array to display a space or character in that spot.

PS: This program will display a picture in the console when finished. The "\*\* \*\*" is where I am working.