from Voyage import *
import csv

class Voyage_IO():
    data_id = "data_voyage.csv"

    def get_data(self):
        data_list = self.__read_data()
        return voyages_list
    def write_data(self, data_list):
        pass
    def append_data(self, voyage):
        pass

    def __read_data(self):
        """ Opens and reads in csv data file for reading """
        data_list = []
        file_stream = open(self.data_id, "r")
        for line in file_stream:
            data_list.append(line.strip().split(","))
        file_stream.close()
        return data_list
        
    def __voyage_to_list(self):
        pass