Unit 12 Practice 2

I believe the file “correct answers.xaml” as supplied in the Resource zip should have the scope of the variable “text” set to the “While” activity so the failures will occur as described in the walkthrough. However, at least in the file I downloaded today (September 17, 2017), the scope of “text” already set to “Process one file.”
Also, the failures will not occur unless you either remove or rename the files “3.txt” and “5.txt”, something not mentioned in the walkthrough, although I guess it’s obvious enough.
The final file will not look correct unless the final carriage return and line feed are removed from “3.txt”, because there will be an extra line appended.

None of these omissions are critical, and this is a very useful and necessary lesson. I would actually like to see more material on debugging, since that’s what we spend so much time doing.

Regards,
burque505

1 Like

I agree with you. I was also wondering why these errors dont happen. For once in our developer career we are looking forward to having errors …LOL…what a disappointment?

1 Like

I also don’t get all the errors described in the walktrough.
No problem with file 3.txt at all - what are they talking about?
I only had to

  1. Default index to 0
  2. Replace <= in index <= filesArray.Count by <
  3. And finally move the 2nd Try/Catch into the first Try block behind the Read text file

No errors anymore and result equals provided Lesson 12 - practice 2 - consolidate.txt

What am I missing?

Also, the provided solution in Lesson 12 Practice 2 - Consolidate - Answers is not correct, as consolidate.txt contains only 3 sentences and Lesson 12 - practice 2 - consolidate.txt only 1 !?