Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import streams
- var ss = newStringStream("")
- ss.write("hello")
- assert ss.getposition == len(ss.data)
- ss.setPosition(len(ss.data))
- if ss.getPosition != len(ss.data):
- echo("omg what?")
- ss.write("olleh")
- if ss.data != "helloolleh":
- echo("-__-")
- echo(repr(ss))
Add Comment
Please, Sign In to add comment