@echo off
echo
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo ³ A truly trivial text file editor            ³
echo ³ By Prof. Timo Salmi, ts@uwasa.fi, 25-Oct-92 ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo.

rem Auxliliary files use drive R: (ramdisk)
if not exist r:\nul goto _noram

rem Instructions
if "%1"=="" goto _help

rem assure that the file initially exists
if exist %1 goto _doit
rem> %1

:_doit
echo Start writing, a row at the time.
echo End with ^Z + Enter, that is Ctrl-Z followed by pressing the Enter Key
copy con r:\tmp$$$ > nul
copy %1 + r:\tmp$$$ /b > nul
if exist r:\tmp$$$ del r:\tmp$$$
goto _out

:_noram
echo Drive R: not found
echo Either make in available or edit the batch
echo (I have R: as my ramdisk)
goto _out

:_help
echo Usage: EDIT [FileName]
echo Appends text at the end of the named file
echo.

:_out
