see i know that getselectedfile returns the instance of the file but here i m saving a file offcource i m taking the file name from the user but why getselectedfile() method is used in this method
i understand that at the time of reading a file we ll need getselectedfile() to get the files instance so that we can read that file
but i didnt understand what the method is doing here
i mean getselectedfile() method
Matthew Brown wrote:How else do you know where to save the file, if you don't use getSelectedFile()? You're using a Save file dialog to allow the user to select a location, and that method tells you what they've chosen.
you mean to say which location the user wants to save the file
the getselectedfile() that ?