View Single Post
Old 03-30-2006, 07:14 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
If you have the lines in a file ie:
Code:
f = open("path/to/filename")
   lines = f.readlines()
   for line in lines:
       # do something with line
       line_head = line[start:6]
       line_tail = line[6:-1]
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote