import os

def write_text(path, text):
    text = text.replace('__DOLLAR__', '$')
    with open(path, 'w', encoding='utf-8') as f:
        f.write(text)
    print('Was successful!', path)
