Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

mTCP new release 27/June/2010 - now ported to Open Watcom (Announce)

posted by Rugxulo Homepage, Usono, 28.06.2010, 06:30

> Excellent news!! One very minor issue: README.TXT uses Unix line
> termination!

So? ;-) Don't use Notepad, use something else, e.g. Wordpad. (Even Win95 EDIT seems to read it okay but writes out in CRLF, so that's a quick converter. FreeDOS EDIT does the exact same, oddly. Other editors, like TDE, usually preserve line endings for you.)

EDIT: Okay, so MS edlin can't handle it at all (corrupts, crashes). I think this proves that most editors can handle it. If not, here's a (lame!) TP program I whipped up the other day:


program u2d(nixfile,dosfile); { mainly for TP 5.5 or TMT 3.90 }
var nixfile:file of char;dosfile:text;ch,oldch:char;
begin
if paramcount=0 then
  begin writeln('u2d nixfile dosfile'); halt end
else
  begin assign(nixfile,paramstr(1)); assign(dosfile,paramstr(2)) end;
reset(nixfile); rewrite(dosfile);
repeat oldch := ch; read(nixfile,ch);
  if (ch = chr(10)) and (oldch <> chr(13)) then writeln(dosfile)
  else write(dosfile,ch);
until eof(nixfile);
close(nixfile); close(dosfile);
end.

 

Complete thread:

Back to the forum
Board view  Mix view
22781 Postings in 2123 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum