26 Jun
2020
26 Jun
'20
9:58 a.m.
Hi, It has sounded here earlier, it might be sometimes useful, to know last sector used by OBERON.FS. Could this hint where the sector lies? PROCEDURE LastSec(name: FileDir.FileName; sec : INTEGER; VAR cont: BOOLEAN); BEGIN IF sec > lsec THEN lsec := sec END ; cont := TRUE END LastSec; PROCEDURE Last*; BEGIN lsec := 0; FileDir.Enumerate("", LastSec); Texts.WriteInt(W, lsec, 6); Texts.WriteLn(W); Texts.Append(Oberon.Log, W.buf) END Last; -- Tomas Kral <thomas.kral@email.cz>