无法从'string'转换为'System.IO.Stream'

时间:2017-04-03 16:44:52

标签: c# unity3d uwp

当我尝试在Unity(Visual Studio)中使用此代码作为UWP时出现此错误:

using (System.IO.StreamWriter writetext = new System.IO.StreamWriter(Application.dataPath + "/data.json"))
{
    writetext.WriteLine(datastring);
}

0 个答案:

没有答案