Skip to content

Commit

Permalink
read stationlist text file into a list
Browse files Browse the repository at this point in the history
  • Loading branch information
woodwm committed Aug 28, 2015
1 parent 0483e97 commit 5b28ad7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions read_stationlist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 28 10:59:33 2015
@author: Wood
"""

def read_stationlist()
f = open('stationList.txt', 'r')
stations= f.readlines()
stationsL = []
for i in range(len(stations)):
stationsL.append(stations[i].strip('\n'))

return stationsL

0 comments on commit 5b28ad7

Please sign in to comment.