and want to count the occurences of '*' in the file with*
Text 1
*
Text 2
*
Text 3
Code: Select all
Define Zk.s, Za
ReadFile(1, "D:\Texte\Asteriskus.txt", #PB_Unicode)
While Not Eof(1)
Zk=ReadString(1)
If Zk="*"
Za+1
EndIf
Wend
Debug Za
CloseFile(1)
This bug does not occur after converting the file converted in ANSI oder UTF-8 file format and changing the flag in the ReadFile command to #PB_Ascii and #PB_UTF8, respectively. This behaviour fits to the fact that IncludeFile does not support Unicode (Russian, Chinese) filenames.