


# https://www.globalsino.com/ICs/page4853.html
# Append one new line to a file



def append_new_line(My_file_name, text_to_append):
    # Open the file in append & read mode ('a+')
    with open(My_file_name, "a+") as file_path:
        # Move read cursor to the start of file.
        file_path.seek(0)
        # Append text at the end of file
        file_path.write('\n' + text_to_append)
        
# Append one new line to a file
append_new_line('C:\GlobalSino\ICs\ExampleFiledUsedINtestingPython\Company.txt', 'My last line is here')



