"""
Topic 06: File Handling & JSON - HARD Exercises (10)
"""
# Exercise 1: Search and Replace - Write a function that takes (filename, old_word, new_word)
# and replaces all occurrences in the file.
# Write your code below:
# Exercise 2: File Statistics Manager - Group files in a directory by their extension and print the count for each.
# Write your code below:
# Exercise 3: Implement a simple "Task Manager" that saves tasks to a JSON file.
# It should support: Add, Remove, List, and Mark as Done.
# Write your code below:
# Exercise 4: Read a large text file in chunks (e.g., 1024 bytes at a time) to save memory.
# Write your code below:
# Exercise 5: Write a script to find and list all duplicate files in a folder (based on content, not name).
# Hint: Use hashing (hashlib module).
# Write your code below:
# Exercise 6: JSON Schema Validator (Simple) - Write a function that checks if a JSON file
# follows a specific structure (required keys and data types).
# Write your code below:
# Exercise 7: Compare two text files and print the line numbers where they differ.
# Write your code below:
# Exercise 8: Recursive File Search - Write a script that finds all .py files in a folder and its subfolders.
# Write your code below:
# Exercise 9: Encrypt and Decrypt - Write a simple Caesar cipher (shifting characters)
# to encrypt a text file and save it, then a function to decrypt it back.
# Write your code below:
# Exercise 10: Log Parser - Read a server log file (mock it) and count how many errors (404, 500) occurred.
# Categorize them by hour.
# Write your code below: