質問編集履歴

2

2018/04/15 22:18

投稿

tsubossie
tsubossie

スコア20

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  Windows.Storage.StorageFile fileobj;
44
44
 
45
- fileobj = storageFolder.GetFileFromPathAsync(path);
45
+ fileobj = storageFile.GetFileFromPathAsync(path);
46
46
 
47
47
  ////ファイルを読み取る
48
48
 

1

2018/04/15 22:18

投稿

tsubossie
tsubossie

スコア20

test CHANGED
File without changes
test CHANGED
@@ -33,3 +33,23 @@
33
33
  もしそれができないのでしたら(ユニバーサルwindwosでは、以前のexeでできても、できないことがある?)、上記フォルダからWindows.Storage.ApplicationData.Current.LocalFolder
34
34
 
35
35
  にファイルをコピーする方法をご教示ください。
36
+
37
+
38
+
39
+ ```C#
40
+
41
+ ////ファイルを設定
42
+
43
+ Windows.Storage.StorageFile fileobj;
44
+
45
+ fileobj = storageFolder.GetFileFromPathAsync(path);
46
+
47
+ ////ファイルを読み取る
48
+
49
+ kekka = await Windows.Storage.FileIO.ReadTextAsync(fileobj);
50
+
51
+ ```
52
+
53
+ ↑のコードではできませんか?
54
+
55
+ 外出先なので試せないのですが・・・