文字列をIsolatedStorageFile
に保存する方法を知っていますが、byte[]
はどうですか?バイトを[IsolatedStorageFile]に保存して読み取る方法
string enc = "myString";
using (var iso = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var stream = iso.OpenFile("fileName", FileMode.Create))
{
var writer = new StreamWriter(stream);
writer.Write(enc);
writer.Close();
}
}
はEDIT:大丈夫、私は書く方法を今知っているが、再び[]バイトを読み出すためにどのように私は文字列の ?
[[孤立したストレージにバイト\ [\]を読み書きする方法(http://stackoverflow.com/questions/6420565/how-to-read-write-byte-into-isolated-storage) – keyboardP