
The code is look like this:
Code: Select all
TextString$ = ""
Restore TextLabel:
Read.s TextString$
MessageRequester("Example","The first embedded text is: " + Chr(10) + TextString$,0)
DataSection
TextLabel:
IncludeBinary "test.txt"
Data.s "" ; Make sure we have a nul to stop the string read
EndDataSection

How can I set to Read.s in ASCII format like in ReadFile() command which has flags option.
#PB_Ascii : all read string operation will use ASCII if not specified otherwise.
#PB_UTF8 : all read string operation will use UTF-8 if not specified otherwise (default).
#PB_Unicode: all read string operation will use Unicode if not specified otherwise.