Then replace 0D0A with one or two spaces separated (2020)
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
bin2txt 1.0 BinToHexText convertor by grub2linux
Syntax :
bin2txt binFile textFile
binFile : binary file name.
textFile : text file name.
/killline : do not conserve RETURN & LINEFEEDs in binFile.
n : do not conserve RETURN & LINEFEADs in binFile.
add a RETURN & LINEFEED every n bytes.
/lower : in lower case.
Originally posted by GOTOmsdos at 2006-7-19 04:02 PM:
Your third point, converting carriage return and line feed to 0D0A characters makes it non-universal.
For example, some programs have options to search for characters by line, which won't work then..
[ Last edited by GOTO ...
if(dig==0x0D)
{
//sprintf(w,"%0X%0X",0x0D,0x0A);
fread(&dig0A,1,1,bin);
i++;
if(dig0A==0x0A)
{
if(doLine==0)
fwrite("\x0D\x0A",2,1,txt);
}
0000544C4F5353206572726F72
00000053494E47206572726F72
00000000444F4D41494E206572726F72
0000544C4F5353206572726F720D0A00000053494E47206572726F720D0A00000000444F4D41494E206572726F72