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



Comment Added by : Chezhian TK

Comment Added at : 2010-10-14 21:40:16

Comment on Tutorial : FileReader and FileWriter example program in Java By Tamil Selvan
Simple file writer example. .............

import java.io.BufferedWriter;
import java.io.FileWriter;

public class FileWriterDemo {
public static void main(String args[]) throws Exception
{

FileWriter fw = new FileWriter("mytest.txt");
BufferedWriter bw = new BufferedWriter(fw);
bw.write("test2");
bw.close();
fw=null;

}
}


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 a lot............
View Tutorial          By: mks at 2013-01-03 06:50:05

2. This is Nice start for programmer '
Thanks

View Tutorial          By: Sagar Ikhankar at 2011-07-22 06:12:44

3. Thanks...
View Tutorial          By: SHUVO at 2015-07-01 21:20:47

4. it's real nice explanation
View Tutorial          By: Shreya at 2010-09-10 11:24:11

5. A very good demonstration o Vector!!
View Tutorial          By: Pankaj Kumar Mishra at 2010-12-09 01:35:06

6. Dear Friend, Please send me complete java code to
View Tutorial          By: Pawan at 2015-03-22 09:16:37

7. Hi Friends.... Can you please send the working ver
View Tutorial          By: shafi at 2010-02-18 08:28:49

8. the example program that given above for recursion
View Tutorial          By: bharathi at 2012-07-17 09:31:14

9. how about the field is multiple times?
is i

View Tutorial          By: g at 2010-10-11 01:09:59

10. place both comm.jar and javax.comm.properties in l
View Tutorial          By: Rania at 2010-09-14 19:52:49