fileGUI: simplify code.