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. hi this is from iniyan....
can you send t

View Tutorial          By: iniyan at 2007-09-09 06:50:18

2. Thanks it worked for me after lot of search for CO
View Tutorial          By: VIRAJ at 2012-12-26 11:56:24

3. Lots of thanks for this example
View Tutorial          By: Santosh at 2011-06-28 16:42:25

4. well...raghu download the sun api...whose link is
View Tutorial          By: rima at 2008-12-27 22:22:03

5. This code works for me. But i have a doubt how to
View Tutorial          By: Daya at 2015-05-04 12:04:19

6. why r there these methods in Object class not in T
View Tutorial          By: santosh at 2011-11-16 06:58:06

7. This code is only for send sms? can it also alert
View Tutorial          By: abdul kadir at 2009-10-23 05:37:46

8. Very cool one, thanks, got the concept clear
View Tutorial          By: black boot at 2010-04-18 08:20:20

9. Handling several submissions can be a lot simple t
View Tutorial          By: Blaze Blankenship at 2012-12-05 13:04:12

10. great !!!!!!!!!!!!!!!!!!!!!
View Tutorial          By: arjun at 2012-03-24 14:55:10