So do i save text or something?
That would work.
Basically, you have to decide how to store each tile of your map in the file. For example you could do
28, 41, green
29, 41, blue
This would be one line for each tile, first the x position, then the y position, then the colour (not idea what you have, maybe you want to store something else there).
Your data does not need to be text, you can also just write binary data, but the big advantage of text is that you can read it, and even write it your self. Another advantage is that there are standard formats that you can use to store your data, like INI, JSON, YAML, or XML. There are readers and writers for many programming languages for such formats, which means you can just use a library instead of having to read and write the data yourself from/to file.
As an example, some YAML data of a game I am writing (but not very fast :P )
name: First scenario
category: Who wins?
description: May the best man win
map:
- {x: 1, y: 1, tile: path_none}
- {x: 1, y: 2, tile: path_none}
- {x: 1, y: 3, tile: path_none}
- {x: 2, y: 2, tile: path_none}
I am writing this game, using these files to load scenarios etc, and I don't even have a map editor. I just edit these file by hand, which works great for testing.
Note that reading lines like "28, 41, green" is quite doable. Reading data like my YAML file is a lot more work by hand.