On 05 Dec 2009, at 21:42, Žilvinas Ledas wrote: > is this intended behavior or it is a bug that iostream.Position always returns -1? Are you reading from standard input or so? In that case it's logical that the position is always -1, since you can't seek standard input (in theory it's infinitely large). Jonas