Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in code chapter 11 Files #191

Open
qasema opened this issue Sep 5, 2021 · 2 comments
Open

Error in code chapter 11 Files #191

qasema opened this issue Sep 5, 2021 · 2 comments

Comments

@qasema
Copy link
Contributor

qasema commented Sep 5, 2021

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.

@bnmnetp
Copy link
Member

bnmnetp commented Sep 5, 2021

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

@qasema qasema mentioned this issue Sep 5, 2021
@qasema
Copy link
Contributor Author

qasema commented Sep 5, 2021

@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.

DaveParillo added a commit to sdmesa/thinkcspy that referenced this issue Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants