Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # To change this license header, choose License Headers in Project Properties.
- # To change this template file, choose Tools | Templates
- # and open the template in the editor.
- import parser
- __author__="marcosilva"
- __date__ ="$Aug 8, 2014 2:56:17 AM$"
- def load_file(f,db):
- file = open(f,'r')
- for line in file:
- print line
- db.add(parser.parser(line))
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement