【问题标题】:How to copy a file from Isolated Storage to Phone Storage WP8?如何将文件从独立存储复制到手机存储 WP8?
【发布时间】:2014-07-07 09:21:04
【问题描述】:

我正在创建一个应用程序,它创建一个文本文件并将该文件存储在独立存储中。

        if (!myFile.FileExists(sFile))
        {
            IsolatedStorageFileStream dataFile = myFile.CreateFile(sFile);
            dataFile.Close();
        }
        StreamReader reader = new StreamReader(new IsolatedStorageFileStream(sFile, FileMode.Open, myFile));
        string rawData = reader.ReadToEnd();
        reader.Close();

        StreamWriter sw = new StreamWriter(new IsolatedStorageFileStream(sFile, FileMode.Append, myFile));
        string[] hello = new string[] { "av", "vd", "dbg" };
        for (int i = 0; i < hello.Length; i++)
        {
            sw.WriteLine(hello[i]);
        }
        sw.Close();

我需要将存储在独立存储中的文件移动到电话存储中。如何在 Windows Phone 8 应用程序中实现这一点?

【问题讨论】:

    标签: c# windows-phone-8 windows-phone


    【解决方案1】:

    我猜你可以将它直接写入本地存储。 This might help.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-01
      • 1970-01-01
      • 2013-07-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多