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. Your code is syntactically correct, but semantical
View Tutorial          By: mobinga at 2011-07-25 15:08:27

2. thanx it i very helpful 4 me as i m new with java
View Tutorial          By: akminder at 2011-08-09 05:09:19

3. Can you send me the full code for sending sms usin
View Tutorial          By: Tamizh chelvam at 2014-03-24 17:30:52

4. i want java code for day planner please send me on
View Tutorial          By: sumaiya pathan at 2010-10-15 21:34:23

5. "I get an error returned saying the SMPT serv
View Tutorial          By: Dennis at 2011-06-24 10:18:10

6. Very good tutorial!
View Tutorial          By: Herve at 2011-04-04 08:06:21

7. i was after a user interactive calendar where they
View Tutorial          By: Harry at 2011-11-17 09:01:07

8. Of course you can use this in a web application. A
View Tutorial          By: Ramlak at 2008-09-17 08:24:21

9. Like every other Java recursion example, this exam
View Tutorial          By: Uriah at 2010-05-08 18:59:16

10. why we user serialization
View Tutorial          By: sonia at 2011-12-08 08:25:25