Files


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