C#でファイルへの書き込み方を調べていてネットにあったものを使ったのですが、FileStreamとFileModeとFileAccessが名前空間'System.IO'に存在しません。アセンブリ参照が不足している。というエラーが出るのですが、何を追加すればいいのでしょうか
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI;
using Windows.UI.Popups;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Imaging;
using Windows.UI.Xaml.Navigation;
using Windows.UI.Xaml.Shapes;
using WindowsPreview.Kinect;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.Storage.Streams;
//ファイルを作成して書き込む
//ファイルが存在しているときは、上書きする
System.IO.FileStream fs = new System.IO.FileStream(
@"C:\test.txt",
System.IO.FileMode.Create,
System.IO.FileAccess.Write);
//バイト型配列の内容をすべて書き込む
fs.Write(bodyIndexBuffer, 0, bodyIndexBuffer.Length);
//閉じる
fs.Close();
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。