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. this is because dear u r using here postfix increm
View Tutorial          By: sajid at 2011-09-06 20:51:54

2. hi purushothaman
thanks for your kind resp

View Tutorial          By: sandeep das at 2009-04-11 10:42:58

3. What is the \ in several of the string building st
View Tutorial          By: rogerb at 2012-01-28 23:07:31

4. very easy explain
View Tutorial          By: Rohit Bhojani at 2012-04-10 12:49:20

5. Simple and easy code..........
View Tutorial          By: mandalson at 2011-12-24 06:50:38

6. I wanna to name ,subject and marks of every subjec
View Tutorial          By: raveesh yadav at 2012-10-13 19:56:47

7. I have one doubt regarding this code,
if th

View Tutorial          By: Yellappa at 2010-06-11 05:49:15

8. Hi i am sanjay ,
I got the exact difference

View Tutorial          By: Sanjay Patel at 2012-05-06 11:36:00

9. site is very good explanation is very clear throug
View Tutorial          By: sridevi at 2013-03-20 15:26:29

10. what's the deffrint between "String[] [] Arra
View Tutorial          By: ahmad at 2009-08-24 03:01:11