Hi,
I have taken a csv file as input and did the transformation like, changing the headers, switching the column contents, adding a new row at the bottom.
Finally, I have exported the file in text format to OneDrive. When I open the file in notepad, I observed that there a empty line added at the bottom. Instead of 53 lines, I see 54.

I want to delete the last comma and the last empty line in my file. Please help we understand how to do it.
I really appreciate your help.
Thanks,