how to load a string map from file into 2d array?

i want to load this map from a file into the array.eg: if i want to make changes
to the map i want to be able to save it to the file, then read it into the array

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
char maps::map3 [20][50] =              {"#################################################",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                        @                      #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#                                               #",
                                          "#################################################"};
Topic archived. No new replies allowed.