first things first im gona say hi being the new member to the forum(don't know if this is prerequisite or not) but anyway im wondering about those 2 IO method, what are their differences and when i should use them and also their advantage and disadvantage if there is such?
//read
FileReader reader = null;
try {
String fn1 = "Text1.txt";
FileReader reader = new FileReader(fn1);
txPane.read(reader, fn1);
//Vs
FileInputStream fis = new FileInputStream(fn1);
txPane.read( fis, null );
} catch (IOException exception) {
System.err.println("Load error");
}