[Pas2js] how to create or read files

Michael Van Canneyt michael at freepascal.org
Thu Sep 3 20:24:02 CEST 2020



On Thu, 3 Sep 2020, Mgr. Janusz Chmiel wrote:

> I have found out, that I can not simply type
> var
> f: text;
> or
> file of text;
> Does Pas2js support reading or writing to The files? Or currently it is not
> possible?

No, it is not possible. That is why I created the browserconsole.

> If yes, which unit or commands or similar keywords can be used for such
> tasks?
> For debugging, it will be very useful to use files to monitor some variables
> changes.

Write to the console log:
writeln()
or  use the native console element for it:
console.log()


Michael


More information about the Pas2js mailing list