public static byte[] ReadAllBytes(string fullpath)
{
var f = Phone.IO.File7.Open(fullpath, "rb");
int c = f.Getc();
var va = new System.Collections.Generic.List<byte>();
while (c != Phone.IO.File7.EOF)
{
va.Add((byte)c);
c = f.Getc();
}
//var data = va.Select(a => (char)a).ToArray();
//string r = new string(data);
f.Close();
return va.ToArray();
}