QUOTE(skyhawk133 @ 9 Oct, 2007 - 08:05 AM)

Chuck, can you explain what you did so the OP understands... Thanks for helping!
Sorry for not explaining the code before.I assumed that if debdeep didn't understand something he would make a post with he questions.I will do my best in explaining I am not really fluent in english though
The method read() takes every character in the file and returns it as an integer therefore I use the variable inChar which is an integer to store every character that is read from the file.
Inside while the integer value of inChar is compared with -1 which stands for eof.
Concerning the if below the value of inChar is compared with the integer value of a blank space.When the variable counter reaches 10 I use the command outbuff.newLine() so that the rest words are written in the next line of the destination file
Concerning this part of the code
CODE
char outChar = ((char)inChar);
outbuff.write(outChar);
in the outChar variable is stored the value of inChar as a character and not as an integer and then written in the destination file with the next command
I hope I helped with this explanation
This post has been edited by chuck87: 9 Oct, 2007 - 10:52 AM