This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Learning file I/O from K&B, and was a little confused on one point: the book goes out of its way to mention that a FileWriter must be flushed and closed when you are done using it, but I read somewhere else that the close() method automatically calls flush().
If this is true, why the unnecessary emphasis on calling both flush() and close() in the examples in the book? Just want to make sure I'm not missing something important.