Fix the file saving and opening.

Signed-off-by: JP-Ellis <coujellis@gmail.com>