I am trying to read the character: " from BufferedReader onto a string. However, it displays the quote character as a square box.
//Opens file
File file = fc.getSelectedFile();
//filePath
String filePath = file.getPath();
//Holds a line of text from the file
String line = null;
try
{
//Reads text from file
FileReader fileReader = new FileReader(filePath);
BufferedReader bufferedReader = new BufferedReader(fileReader);
//Reads each line onto the left text area (encryptMessageTA)
while ((line = bufferedReader.readLine()) != null)
{
System.out.println(line);
}
}
//File not found
catch (FileNotFoundException ex)
{
System.out.println(ex.getMessage()); //prints exception
}
//Input/Output exception
catch (IOException ex)
{
System.out.println(ex.getMessage()); //prints exception
}