ex11.pp 354 B

1234567891011121314151617
  1. Program ex11;
  2. { Program to demonstrate the TStream.GetPos function }
  3. Uses objects;
  4. Var L : String;
  5. S : PStream;
  6. begin
  7. L:='Some kind of string';
  8. S:=New(PMemoryStream,Init(100,10));
  9. Writeln ('Stream position before write: ',S^.GetPos);
  10. S^.WriteStr(@L);
  11. Writeln ('Stream position after write : ',S^.GetPos);
  12. Dispose(S,Done);
  13. end.