The file in the example below was 5 bytes long. What is the length of the file after the following code gets executed?
The answer is supposed to be 6 but I don't see how it computes this answer?
posted 14 years ago
First the content of the file is overwritten and not appended. Then, "BYE" is composed of three characters and a character is 2-bytes long => 3*2 = 6 bytes ! HIH ------------------ Valentin Crettaz Sun Certified Programmer for Java 2 Platform