Windows Phone 7 uses Isolated Storage, which is different approach than other systems e.g. Windows 7.
I assume you are using C# and you have maps predefined. You have two options
- Include file in the project
- write this map string into the code
there are more option - like using database - but these two are simple and good enough. If I were you I would go with second one. Map looks pretty simple, so the loading time and memory using shouldn't be a problem.
Best way is to define a helper (if you are interested why I made it static readonly here's an explanation)
public static class MapHelper
{
public static readonly string Map = @"
00000000000000000000
01111111111111111110
01111111111111111110
01111111111111111110
01111111111111111110
01111111111111111110
01111111111111111110
00000000000000000000
00000000000000000000
00000000000000000000
";
}
Now if you want to extract the map as lines here a snippet
var lines = Map.Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
to get the width and height use
width = lines.Select(x => x.Length).Max();
height = lines.Length;