← board

Text file I/O: Assign/Rewrite/Reset/WriteLn(f,…)/CloseFile missing

Symptom

examples/adventure/engine.pas:563 (TGame.SaveTo):

var f: Text;
begin
  Assign(f, path); Rewrite(f);
  WriteLn(f, 'room=' + Player.RoomId);
  
pascal26:563: error: undefined variable (Assign)

The classic Pascal text-file API over a Text (file) handle is not provided: Assign/AssignFile, Rewrite, Reset, Append, WriteLn(f, …) / Write(f, …), ReadLn(f, …), Eof(f), Close/CloseFile. SaveTo/LoadFrom in adventure need write + read.

Notes / direction

Acceptance

Log