Files


  1. Read file remove newlines
  2. Read all the lines into a list
  3. Read all the characters into a string (slurp)
  4. Not existing file
  5. Writing to file
  6. Append to file
  7. Binary mode
  8. Does file exist? Is it a file?
  9. Exercise: count numbers
  10. Solution: count numbers
  11. Exercise: strip newlines
  12. Solution: strip newlines
  13. Exercise: color selector
  14. Exercise: ROT13
  15. Solution: color selector
  16. Read text file