<div class="doctest-setup">

>>> from xix.utils.config import configFactory
>>> directory = configFactory('xix-unittests.cfg').utils.xio.data.directory
>>> from glob import glob
>>> import os.path
>>> files = glob(os.path.join(directory, '*txt'))
>>> files.sort()

</div>


Example 2.
----------

Seeking from the current position:

>>> from xix.utils.xio import AggregateFile
>>> fd = AggregateFile(files).open()
>>> fd.seek(7)
>>> fd.seek(5, 1)
>>> print fd.read()[:-1]
l
mnopqr
stuvwx
yz

Seeking negative amount from the current position:

>>> fd = AggregateFile(files).open()
>>> fd.seek(7)
>>> fd.seek(-2, 1)
>>> print fd.read()[:-1]
f
ghijkl
mnopqr
stuvwx
yz




