DOS text files traditionally have carriage return and line feed pairs '\r\n' as their newline characters while Linux text files have the linefeed character, '\n', as their newline character.
To convert a Linux text file to a DOS text file do:
todos -b file.txt
The above command creates a backup of the original file, file.txt.bak, in addition to
converting file.txt to the DOS text file format.