thinkcspy
thinkcspy copied to clipboard
Error in code chapter 11 Files
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.
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 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.