Added startpos argument to WriteChars and WriteBytes (defaults to 0)