public void CreateNewMap(string Filename, int width, int height) { TextWriter tw = new StreamWriter(Filename + ".dat"); string firstline = Filename + "#" + width + "#"+ height +"#72" ;//Map Information line tw.WriteLine(firstline); for(int i = 0; i < height;i++) //Set Every tile to empty. . . { for (int n = 0; n < width; n++) { tw.WriteLine("0;0;0#0"); } } }