Files


  1. Open and read file
  2. Open and read file
  3. Filehandle with and without
  4. Read file remove newlines
  5. Read all the lines into a list
  6. Read all the characters into a string (slurp)
  7. Not existing file
  8. Open file exception handling
  9. Writing to file
  10. Append to file
  11. Binary mode
  12. Does file exist? Is it a file?
  13. Exercise: count numbers
  14. Solution: count numbers
  15. Exercise: strip newlines
  16. Solution: strip newlines
  17. Exercise: color selector
  18. Exercise: ROT13
  19. Exercise: Combine lists
  20. Solution: color selector
  21. Solution: Combine lists
  22. Read text file