thinkcspy icon indicating copy to clipboard operation
thinkcspy copied to clipboard

Error in code chapter 11 Files

Open qasema opened this issue 3 years ago • 2 comments

In chapter 11, all the codes try to open the file ccdata.txt that does not exist. The only file available is ccdata0.txt.

issues in: https://runestone.academy/runestone/books/published/thinkcspy/Files/Iteratingoverlinesinafile.html

The solution is to change the name of the file from ccdata0.txt to ccdata.txt.

qasema avatar Sep 05 '21 22:09 qasema

There are also ccdata1 and maybe ccdata2. --- see the datafile directive in those chapters.

Yep -- 3 files in this chapter

  • AlternativeFileReadingMethods.rst uses ccdata2.txt
  • Iteratingoverlinesinafile.rst uses ccdata1.txt
  • ReadingaFile.rs uses ccdata0.txt

Thanks @qasema

bnmnetp avatar Sep 05 '21 23:09 bnmnetp

@bnmnetp although they are the same file, we had to rename them in order to bring them up with different IDs, so it will be fine to use ccdata.txt for all the codes in the chapter.

qasema avatar Sep 05 '21 23:09 qasema