#!/usr/bin/env python3
import sys

def filter_file(input_path, output_path):
    with open(input_path, 'r', encoding='utf-8') as infile:
        lines = infile.readlines()
    
    with open(output_path, 'w', encoding='utf-8') as outfile:
        for line in lines:
            # If line contains the arrow, skip it
            if '→' in line:
                continue
            # Otherwise write the line as is (including blank lines)
            outfile.write(line)

if __name__ == '__main__':
    filter_file('Tam Bao.txt', 'Tam Bao - Myanmar.txt')
    print("Filtered file saved as 'Tam Bao - Myanmar.txt'")