def METHOD_NAME(filename, filepath, outpath):
    """
    Read in file, remove all preprocessor directives and output
    """
    r = re.compile(r"^#.*$\n")
    with open(os.path.join(filepath, filename)) as infile:
        txt = infile.read()
        outtxt = re.sub(r, '', txt)
        with open(os.path.join(outpath, filename), 'w') as outfile:
            outfile.write(outtxt)