f = ReadFile( #PB_Any, filename, #PB_File_NoBuffering )
If Not f
filename = ""
MessageRequester("LJLAng", "Could not read file")
Else
SetWindowTitle( #MainWindow, "Compiler - " + filename )
format = ReadStringFormat( f ) ; Thanks to Infratec and Mesa
LJLang::ValidTextFormat(format)
body = ReadString(f,format | #PB_File_IgnoreEOL,#PB_File_IgnoreEOL)
I may not help with your coding
Just ask about mental issues!
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
using the third parameter, the author of the topic limits the number of bytes read (65536). This may be the reason that a larger file will be truncated. The third parameter is not intended to use the constant #PB_File_IgnoreEOL , it looks absurd, an error.
Cyllceaux wrote:
To be honest... I only saw the last Parameter and the constant... I didn't check it
It happens to everyone. Sometimes between precipitation and forgetting to modify elements in the message... We have the choice!
It was just an opportunity to laugh a little... without thinking badly about it.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...