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. thanks for the definition...more power :)
View Tutorial          By: saluki at 2011-07-19 05:36:00

2. COOL...........Nice ,understanding .simple i like
View Tutorial          By: DON at 2014-06-12 16:48:46

3. very good tutorial..
View Tutorial          By: shobhit at 2010-05-04 12:17:41

4. feel happy but i want to database tables also
View Tutorial          By: sisira at 2013-06-05 13:26:51

5. I want full information about Java & Data Stru
View Tutorial          By: s.karthick at 2015-05-07 05:32:24

6. i just got to know about this and i am really imp
View Tutorial          By: spo_mega at 2009-06-11 07:16:38

7. I am getting this exeception when trying to send m
View Tutorial          By: praveen at 2012-12-27 11:15:14

8. wow , really good java sample , and i suggest to s
View Tutorial          By: kiemtheng at 2011-08-31 13:31:32

9. i didnot get the answer
View Tutorial          By: ramana at 2013-02-04 06:36:37

10. good job
by- shiv at 2010-11-26 11:51

View Tutorial          By: shiv kumar bind at 2010-11-25 23:20:28