Vincent Pit wrote: >But I don't think >= should be replaced by >, because an offset of n is >outside a string of length n. Offset of n is acceptable with a string of length n as long as you're not intending to read more than zero chars from it. The proper conditions for acceptability are: write_length >= 0 offset >= 0 offset + write_length <= string_length -zeframThread Previous | Thread Next