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. Neatly explained about the three important functio
View Tutorial          By: Jitendra Lenka at 2011-02-03 06:34:10

2. This is very good article.
View Tutorial          By: Vipin Joshi at 2008-03-27 13:53:26

3. I want java
View Tutorial          By: A.S.Vtihyatharan at 2009-12-01 03:25:36

4. Enough to understand basic concept.Thanks.
View Tutorial          By: Jyothylakshmy P u at 2012-09-18 05:35:48

5. please gave us simple difference between structure
View Tutorial          By: vishal at 2011-12-18 13:33:17

6. simply super post
View Tutorial          By: vinodh at 2010-05-05 00:29:12

7. please help me on "why subclass of stack is
View Tutorial          By: mahendra at 2012-12-15 03:39:22

8. This is just Great, didn't find anything like this
View Tutorial          By: Vikrant Verma at 2012-10-07 04:54:42

9. What is meant ClasspathResource why do we use it i
View Tutorial          By: anil kumar at 2008-06-03 05:41:36

10. Daniel, i think you need another func, also you ca
View Tutorial          By: רופא שיניים at 2009-08-15 16:48:07