android studio openfileoutputについて

49 views
Skip to first unread message

orefujikowa

unread,
Jan 17, 2023, 1:48:33 AM1/17/23
to 日本Androidの会
androidstudio初学者です
// System.out.println("これは?"+yomikomi("daydeta1"));//1ここには値が入っている
List<String> i=yomikomi("daydeta1");
try (
PrintWriter pip = new PrintWriter(
new OutputStreamWriter(openFileOutput(
"daydeta1",MODE_PRIVATE)))){
// System.out.println("これは?"+yomikomi("daydeta1"));//2ここには値が入ってない
openFileOutputのMODE_PRIVATEが原因だと思っているのですが
なぜ2には値が入ってないのでしょうか
Reply all
Reply to author
Forward
0 new messages