What’s Wrong With This Code (#17)

Scott Allen has a quiz for you:

We interrupt this LINQ series with an emergency!

Well, there is no real emergency, but there hasn’t been a WWWTC for some time, so …

The following program is suppose to compress its own source code into a Program.cs.zip file, then reverse the compression and produce a Program.txt file.

The problem is: Program.txt always shows up as an empty file!

What’s wrong?

(see the code on Scott’s Blog)

Hint: You can fix the program by adding a single line of code.

Cool idea…

What’s Wrong With This Code (#17)

Comments (0)