Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __author__ = 'Colin McNeil'
- def getstrings(filename):
- #Open the file with the filename passed in
- file = open(filename,'r')
- #Split into list of substrings with a split every line
- stringo=file.read().split('\n')
- #Trim empty space
- del(stringo[len(stringo)-1])
- return(stringo)
Advertisement
Add Comment
Please, Sign In to add comment