import os


def load(name):
    # todo: populate from file if it exists.
    filename = get_full_pathname(name)
    return []


def save(name, journal_data):
    filename = get_full_pathname(name)

    with open(filename, 'w') as fout:

        for entry in journal_data:
            fout.write(entry + '\n')


def add_entry(text, journal_data):
    journal_data.append(text)


def get_full_pathname(name):
    filename = os.path.abspath(os.path.join('.', 'journals' + name + '.jrl'))

@@ -66,16 +66,30 @@
 exists.%0A
+    data = %5B%5D%0A
     file
@@ -119,16 +119,172 @@
 e(name)%0A
+    if os.path.exists(filename):%0A        with open(filename) as fin:%0A            for entry in fin.readlines():%0A                data.append(entry.rstrip())%0A%0A
     retu

Check for filename for journal load