Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L=[]
- #The createDatabase function opens the input file, reads it and returns a list of lists, L.
- def createDatabase():
- file=open("CD_Store.txt", 'r')
- for i in file:
- line=i.strip("\n")
- line=line.split(",")
- L.append(line)
- #Opens the file, gets each record as a list consisting of of elements, and appends each line to the empty list,
- file.close()
- return L
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement