Fixed file association problem

Use the open function because using the edit will cause it to open in
notepad instead of using the user's preferred program.