Hello
Thank you for your question and reaching out.
As per wikipedia .org
Each line of text is separated from the next by the two-character combinations carriage return (CR) and line feed (LF) in the text file format used by MS-DOS and Microsoft Windows. Many text editors, including Notepad, do not automatically insert a CR-LF marker at the end of the last line of text since it is typical for the last line of text to not be finished with one.
On Microsoft Windows operating systems, a file is considered a text file if its "filename extension" is the letter "txt." For text files with particular functions, there are numerous different suffixes that are utilized.
The majority of Microsoft Windows text files are encoded using ANSI, OEM, Unicode, or UTF-8. The single-byte ISO/IEC 8859 encodings that Microsoft Windows nomenclature refers to as "ANSI encodings" are typically what the Microsoft Notepad menus refer to as "System Code Page," a legacy, non-Unicode encoding.
--If the reply is helpful, please Upvote and Accept as answer--