filechooser dialog and read a file