Open/Save File dialog at runtime

Thank you for your patience, but I still can’t do it. The red line is wrong, and there are 94 compilation errors.