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. not good not bad...............
View Tutorial          By: mahesh at 2010-10-05 00:45:54

2. hi ..........
the code is worked for me....

View Tutorial          By: pradeep at 2012-01-25 06:30:14

3. very simple explanation
View Tutorial          By: shahbaz at 2010-03-19 10:34:32

4. i get this msg when one of the clients close there
View Tutorial          By: Zero Code at 2009-07-16 14:05:14

5. not satisfied friend. for Socket class it asks to
View Tutorial          By: Gaurav at 2009-01-28 07:34:42

6. hi..
recipient: 9994852342 message: chadru<

View Tutorial          By: chandrasekaran at 2009-05-04 09:00:47

7. Hi, thanks for your code, I have modified a little
View Tutorial          By: Armando at 2010-08-10 09:34:35

8. Plse Send me The Code For Sms Application to My Ma
View Tutorial          By: Santoshb at 2010-09-08 07:08:55

9. Good To understand.
View Tutorial          By: Radhika at 2010-05-11 01:24:55

10. WHY You are using such huge code for suspending an
View Tutorial          By: pavan kurariya at 2010-01-14 00:35:55