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



Comment Added by : Tim

Comment Added at : 2009-10-21 17:31:00

Comment on Tutorial : FileReader and FileWriter example program in Java By Tamil Selvan
Nice example for FileReader and FileWriter,

The FileWriter code needed to be tweeked though,

FileWriter f2 = new FileWriter("file3.txt");
f2.write(buffer,buffer.lengthbuffer.
length/4,buffer.length/4);
f2.close();

The f2.write(buffer,buffer.length/4,buffer.length/4) works
better, I couldn't find a method for FileWriter.write() that took
4 arguments....


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. It worked. Thank U!
View Tutorial          By: Abhijit Kurane at 2010-12-27 11:01:48

2. hi.....
if we have number of fieldsl ike na

View Tutorial          By: shailesh at 2011-12-15 07:10:34

3. pls help on me to program in c++, write a program
View Tutorial          By: Hamid at 2014-12-18 20:41:40

4. GOOD FOR BIGGENERS
View Tutorial          By: naresh at 2012-08-04 11:19:03

5. thanks i am fresher to j2me i understand the conce
View Tutorial          By: anusha at 2010-04-20 00:32:10

6. insert a value in excel is not a problem but inser
View Tutorial          By: durga at 2010-03-05 23:08:02

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

8. very clear explanation. thank for sharing explanat
View Tutorial          By: toto at 2011-07-18 01:04:56

9. I have already establish connection with mysql in
View Tutorial          By: shaishav at 2013-06-20 04:27:44

10. ahmm I guess This is a VB6 program? or how can I g
View Tutorial          By: kelvin at 2011-02-27 14:07:44