You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
i want to make a dialog box to import a file and then use the buffered reader to use it. should i use (before the BufferedReader) the JFileChooser, the Scanner or the openFileReader? i tried to use all of them but i always got problems that i cant solve.
If you are using a gui a JFileChooser is an easy way to get a reference to a user–selected file. If using a console application you can use a JOptionPane to receive user input and pass the file path off to your BufferedReader.