View Single Post
  #1 (permalink)  
Old 11-01-2007, 10:34 AM
unhurt unhurt is offline
Member
 
Join Date: Oct 2007
Posts: 21
unhurt is on a distinguished road
FileReader Vs FileInputStream and same goes to output
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?



Code:
//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"); }

Last edited by unhurt : 11-01-2007 at 10:40 AM.
Reply With Quote
Sponsored Links