Added chooseWriteFile$ function.