我该怎么办?
显示错误
字符文字中的字符过多
using(var fileStream = appStorage.OpenFile!('note.txt', System.IO.FileMode.OpenOrCreate))
Run Code Online (Sandbox Code Playgroud)
Abe*_*ler 10
你的问题在这里:
'note.txt'
您需要将其更改为:
"note.txt"
单引号是用来定义charS,SO 'c','a'或者'm'是单引号的所有有效使用.如果您将有多个字符,则表示您正在定义字符串并需要使用双引号.
而摆脱了!在OpenFile!