update
[archive.git] / Apkawa / Study / pascal / archive / job1_1 / job1_1.py
blobc693cc447dd156c8618f37798d1338822cf8b32a
1 import os
2 path = "job1_1.data"
3 string = ""
4 i = 0
5 t = 0
6 LF = 10
7 CR = 13
9 f = open( path, "r")
10 while True:
11 char = f.read(1)
12 os.sys.stdout.write( char )
13 if len( char ):
14 if not ord(char) == 32:
15 string += char
16 if ord(char) == 26:
17 print "SUB!"
18 else:
19 break
20 print string