def add_newlines(f, output, char):
line_count = get_line_count(f)<EOL>f = open(f, '<STR_LIT>')<EOL>output = open(output, '<STR_LIT>')<EOL>for line in range(line_count):<EOL><INDENT>string = f.readline()<EOL>string = re.sub(char, char + '<STR_LIT:\n>', string)<EOL>output.write(string)<EOL><DEDENT>
Adds line breaks after every occurance of a given character in a file.

    Args:
        f: string, path to input file.

        output: string, path to output file.

    Returns:
        None.