hello.I have an C++ assignment I have to find a path to exit from maze.I should read the maze from a file and write it to an array..but I couldn't do it.can you help me,can you give the code to do that and which headers should I include,please answer me soon.thanks

Nobody will just give you the code. This is an assignment. You are obviously meant to learn. Learning does not entail getting us to give you the code. You will learn nothing from it. Not only does it not benefit us, but it won't benefit you either. You will have a greater understanding of C++ later on if you do this for yourself.