# -*- coding: utf-8 -*- """ Python ver2.7.13 [ pyOpenGL_sample_texture.py ] Author kazuki tanaka Create Date 2017 4/26 """ ''' ----------------------------------------------------- import library ------------------------------------------------------''' import sys ''' --- Do Code ---''' f = open( 'skip000.tga', 'rb') ''' f content show ''' print ' f content show' for row in f: print str(row) print str(f) ''' seek first position file set ''' f.seek(0) ''' content load ''' header = f.read( ) ''' header content show ''' print ' header content show' for row in header: print str(row) print str(header[12]) f.close()