Commits

Fabian Topfstedt committed 37c94a0

example

  • Participants
  • Parent commits 09263c7

Comments (0)

Files changed (1)

 
 # An example:
 >>> from filechunkio import FileChunkIO
->>>
->>>
 >>> chunk = FileChunkIO('LICENCE', offset=646, bytes=201)
 >>> chunk.read()
 'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.'
 >>> chunk.seek(4)
 >>> chunk.read(8)
 'SOFTWARE'
->>> chunk.tell()
 >>> chunk.seek(0)
 >>> chunk.readline()
 'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n'