input: Write a python function to read and print the contents of a text file line by line.
  assert read_and_print("sample.txt") is None  # Assuming sample.txt has content that will be printed
  assert read_and_print("empty.txt") is None  # Assuming empty.txt is an empty file
output: def read_and_print(file_path):
      with open(file_path, 'r') as file:
          for line in file:
              print(line, end='')