[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.NEB.4.53.0305210631060.23181@raindrops.overflow.org>
From: trippz at overflow.org (huw)
Subject: (no subject)
# MISSING BITMAPZ!HAS BATTERIEZ!SEGMENTS
# CAN BE DIVIDED USING CARRIAGE RETURN (
# \r)DONT BE FOOLED!MURDERER WITH A GUN?
import sys
def k():
buffer = ""
size = 25000
while 1:
h = 0
o = 0
if len(buffer) + 1 >= size:
print "too big"
sys.stdout.write(buffer)
break
k = raw_input("lame> ")
if k == "print":
sys.stdout.write(buffer)
break
elif k == "plain":
h = 1
k = raw_input("file> ")
elif k == "string":
t = raw_input("string> ")
o = 1
if o != 1:
g = open(k,"r")
t = g.read(-1) # REVOLUTIONARY WITH A CAUSE
g.close()
for r in t:
if h == 1:
buffer += r
else:
z = ord(r)
z = "\\x%x" % z
buffer += z
k()
Powered by blists - more mailing lists