Advertisement
Guest User

Untitled

a guest
Aug 7th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. # To change this license header, choose License Headers in Project Properties.
  2. # To change this template file, choose Tools | Templates
  3. # and open the template in the editor.
  4. import parser
  5. __author__="marcosilva"
  6. __date__ ="$Aug 8, 2014 2:56:17 AM$"
  7.  
  8. def load_file(f,db):
  9. file = open(f,'r')
  10. for line in file:
  11. print line
  12. db.add(parser.parser(line))
  13. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement