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 Arjay, 28.06.2010, 14:22

> > Don't use Notepad, use something else, e.g. Wordpad
Tsk, I don't know I make a minor complaint after I spotted Mike was using the wrong text termination for DOS and you assume I was using notepad!!! :no:

> WtF ???
What is this Wordpad anyway? :confused:

> Try FASM IDE :-)
heh. Can't beat programmers editors. Now hands up if you've ever been really sad and used debug as a text editor.... :ok:

> If not, here's a (lame!) TP program I whipped up the other day
Thanks. Kudos for releasing yours (I never have), always good to have more source around. Still on this theme here is a similar Q&D TP cludge I wrote many years ago for fixing XML files which had a mix of line terminations:

Var
   TextFile:Text;
   OneLine:String;
   OneChar:Char;

Begin
  Assign(TextFile, paramstr(1));
  Reset(TextFile);
  While NOT EOF(TextFile) do
    Begin
      Read(TextFile, OneChar);
      Case OneChar of
        #10:{do nothing};
        #13:{do nothing};
        '>':Writeln('>');
      else Write(OneChar);
      end;
    End;
  Close(TextFile);
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