java print file from printer code example
Example: print files in java
BufferedReader fr=new BufferedReader(new FileReader("fileName"));
String line;
while((line = br.readLine()) != null){
System.out.println(line);
}
BufferedReader fr=new BufferedReader(new FileReader("fileName"));
String line;
while((line = br.readLine()) != null){
System.out.println(line);
}