Files

  1. die, warn, exit
  2. while loop
  3. Loop controls: next, last
  4. Opening file for reading
  5. Opening a file
  6. Opening a file - error handling
  7. Opening a missing file
  8. Read one line from a file
  9. Process an entire file line by line (while, cat)
  10. Write to a file
  11. Sum of numbers in a file
  12. Analyze the Apache log file
  13. Encoding and UTF-8
  14. Open files in the old way
  15. Binary mode
  16. Reading from file, read, eof
  17. tell, seek
  18. truncate
  19. Exercise: Add more statistics
  20. Exercise: Write report to file
  21. Exercise: Analyze Apache - number of successful hits
  22. Solution: Add more statistics
  23. Solution: Write report to file
  24. Solution: Analyze Apache - number of successful hits