Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I'm having a huge issue getting simple character matrix from a file.
I have this file: maze.txt
and i just want to read it into a 2d array of chars. I have a working output function, and when i output the result of this function, it is simply garbage. Anyone see what's wrong??
struct COORD InputMaze(int *maze)
struct COORD Size;
fscanf(instream, "%c", &InputChar);
InputChar=fgetc(instream);//get rif of the terminator