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



Comment Added by : Joseph Harner

Comment Added at : 2011-12-04 23:20:48

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

import java.io.*;
class WriteToText {
public static void main(String args[]) throws Exception {
String source = "Now is the time for all good men to come to the aid of their country and pay their due taxes.";
FileWriter f0 = new FileWriter("file1.txt");
f0.write(source);
f0.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. thanks sir for giving such basic knowledge of J2ME
View Tutorial          By: rahul aware at 2011-11-01 05:01:07

2. please sent the java code for course plan automati
View Tutorial          By: vijayakumar.r.r at 2009-08-27 01:39:22

3. Hello,

I got an error like (Wed Ma

View Tutorial          By: narayanan at 2010-03-17 05:56:21

4. HI EVERY ONE I AM NEW IN J2ME SO I WANT TO LEARN S
View Tutorial          By: KALAI at 2011-04-04 03:10:32

5. Yes, its possible to send SMS through web applicat
View Tutorial          By: Vidya at 2010-07-08 07:19:58

6. can any one plz tell me which java comm api do we
View Tutorial          By: GAURAV MODI at 2010-01-29 02:12:13

7. Not bad,but need some implementation
View Tutorial          By: surjeet katwal at 2010-01-19 04:41:15

8. very nice
View Tutorial          By: Md Irshad Alam at 2014-10-29 18:58:53

9. would like to have copy of clock
View Tutorial          By: jim johnson at 2008-04-10 17:30:06

10. its good,,,can it be done more simpler without usi
View Tutorial          By: gahanaatherya at 2013-10-14 11:50:02