What do i do?
an error showing that
too many characters in character literals
using(var fileStream = appStorage.OpenFile!('note.txt', System.IO.FileMode.OpenOrCreate))
What do i do?
an error showing that
too many characters in character literals
using(var fileStream = appStorage.OpenFile!('note.txt', System.IO.FileMode.OpenOrCreate))
your problem is here:
'note.txt'
You need to change it to :
"note.txt"
Single quotes are used to define char
s, so 'c'
, 'a'
or 'm'
are all valid uses of single quote. If you will have multiple characters you are defining a string and need to use double quotes.
And get rid of the !
in OpenFile!