2
0

tw0896a.pp 311 B

1234567891011121314151617
  1. { %FAIL }
  2. var
  3. dat : file of byte;
  4. j : longint;
  5. Buffer : Array[0..2047] of byte;
  6. begin
  7. for j:=0 to 2047 do
  8. Buffer[j]:=j and $ff;
  9. Assign(dat,'tbug896.tmp');
  10. Rewrite(dat,1);
  11. for j:= 0 to 2047 do
  12. { writeln should not be allowed for typed files }
  13. writeln (dat,Buffer[j]);
  14. Close(dat);
  15. end.