Comment on Tutorial - FileReader and FileWriter example program in Java By Tamil Selvan



Comment Added by : LILI

Comment Added at : 2011-11-06 01:47:20

Comment on Tutorial : FileReader and FileWriter example program in Java By Tamil Selvan
i WROTE A FILE READER LIKE IT WAS IN THE SAMPLE BUT STILL CAN COMPILE IT, CAN SOMEONE HELP
import java.io.*;
class FileReaderDemo {
public static void main(String args[]) throws Exception {
FileReader fr = new FileReader("FileReaderDemo.java");
BufferedReader br = new BufferedReader(fr);
String s;
while((s = br.readLine()) != null) {
System.out.println(s);
}
fr.close();
}
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hi,
I want to read the barcode and print it

View Tutorial          By: Santu at 2013-03-12 18:15:18

2. How i can comment in server?Some another message
View Tutorial          By: Youjizz at 2013-04-09 00:30:47

3. To "need help":

String st

View Tutorial          By: alex at 2010-05-13 09:57:25

4. Plz. help me in getting code to read messages usin
View Tutorial          By: Jaydatta at 2009-04-03 20:58:57

5. ya its good example
View Tutorial          By: vijaychellappa at 2010-11-10 04:57:42

6. plz send me java prograams
View Tutorial          By: simmy at 2009-10-26 01:57:55

7. Awesome tutorial
View Tutorial          By: Anonymous at 2012-12-13 06:50:36

8. your web site is very useful for students
View Tutorial          By: aathithi at 2008-06-22 22:41:07

9. Thank you very much for this tip.
View Tutorial          By: Lise at 2011-07-15 13:27:23

10. Does memmove care if the source is bytes and the d
View Tutorial          By: Paul at 2012-07-20 11:59:32