-2

此代码用于将文本框的值写入文件,但即使我使用现有文件它也不会创建文件它仍然是空的!

 private void button1_Click(object sender, RoutedEventArgs e)
 {
     string url =infooo.ur + txtb1.Text +  "/" + passtxx.Password + "/1/570322308ce1121cba1b93f5acc9ebd4733ef2bca90ef942a2cfa224f0aa08dc/1";
     client.DownloadStringAsync(new Uri(url));

     IsolatedStorageFile iso = IsolatedStorageFile.GetUserStoreForApplication();

     IsolatedStorageFileStream stream = iso.CreateFile("T11.txt");

     StreamWriter streamWrite = new StreamWriter(stream);

     streamWrite.Write(txtb1.Text);

     streamWrite.Close();

 }
4

1 回答 1

1

为确保您的文件未保存,请尝试列出您的隔离存储: http ://wp7explorer.codeplex.com/

于 2012-04-05T09:31:33.647 回答