Well, with your changes it works for me, except it prints an extra '\n' for each line, which you are correct, is from the file.
This is what I tested:
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct wildroom{
int x;
int y;
char symbol;
} wr;
int main(){
FILE *minimap;
wr wilddata[6][6];
int x,y;
minimap = fopen("./minimap.txt","r");
if(minimap==NULL)
{
printf("Error in File Read\n");
exit(0);
}
for(x=0;x<6;x++){
for(y=0;y<6;y++){
wilddata[x][y].x=x;
wilddata[x][y].y=y;
wilddata[x][y].symbol = fgetc(minimap);
}
}
for(x=0;x<6;x++){
for(y=0;y<6;y++){
printf("%c",wilddata[x][y].symbol);
}
/*printf("\n");
*/
}
fclose(minimap);
return(1);
}
This is the file I used:
Code:
01234
56789
abcde
fghij
klmno