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 good article with explanation
View Tutorial          By: yuganthi at 2012-09-24 05:18:35

2. How can I send parameter to crystal report?
View Tutorial          By: Mark at 2009-10-14 03:41:36

3. how we can store a pdf file into database

View Tutorial          By: neelima at 2010-03-10 23:46:52

4. well done!!nice work
View Tutorial          By: Dxy at 2010-07-26 00:46:55

5. i got really nice help from the code. Thanks.
View Tutorial          By: Amit at 2009-04-10 08:18:40

6. I know core java jsp and sql. I want to retrieve d
View Tutorial          By: Vinoth at 2011-08-16 07:22:15

7. very helpful & gud tutorial...
thanks..

View Tutorial          By: Narpinder Sharma at 2011-06-27 03:12:20

8. How can I delete the data that I have entered into
View Tutorial          By: selina at 2011-08-15 05:15:45

9. Can anybody tell the steps to go ahead with the ex
View Tutorial          By: Sunpenn at 2009-10-12 03:57:58

10. Nice Explanation..................... It's very ve
View Tutorial          By: venkat at 2011-04-09 13:42:45