mò ú´¯Ec@sdd„ZdS(ic csd}|iddƒ|idƒ}|dj}xÞ|idƒ}|iƒ}|djoC||d}|| }|p|p|o|d7}n|Vq4|oct ||ƒ}|i| dƒ|i|ƒ|}|i| dƒ||jod|}q q4dSq4WdS(s#Read a file line by line, backwardstiÿÿÿÿiis N(tbuftfiletseektreadtlastcharttrailing_newlinetrfindt newline_posttelltpostlinetmintBLKSIZEttoread( RR RRRRR R R((tF/home/james/work/rp_2006/hg17_7way_2/genome_scores_hg17/revfileiter.pyt revfileiters.     N(R(R((Rt?s