So, I was thinking of using arc for an easy task. I have a file with a line of text, a blank line, a line of text, etc. I wanted to rewrite it without the blank lines.
Looking into the link below I found code for reading a file:
arc> dev
"c:\\Users\\Steve\\Desktop\\mbrm.txt"
arc> (w/instring ins dev
(whiler l (readline ins) nil
(prn "{" l "}")))
{c:\Users\Steve\Desktop\mbrm.txt}
nil
arc>
WDER Wangiella dermatitidis Wangiella dermatitidis W. dermatitidis
WESP Weeksella species Weeksella species Weeksella sp.
WEVI Weeksella virosa Weeksella virosa W. virosa
WEZO Weeksella zoohelcum Weeksella zoohelcum W. zoohelcum
WHITE White White
WNF Normal flora also recovered Normal flora also recovered
WOO The specimen was collected The specimen was collected with a wooden shafted swab. Wood components may inhibit virus isolation. Interpret
these negative results with caution.
The "read" procedure will read only a single Arc expression at a time. If you want to read a line, there is a "readline" procedure.
Also, it is correct that you make code look like code by putting two spaces before each line of code.
After "code." in the above paragraph, there is a newline, then
another newline, then two spaces, then "After [...] newline, then",
then another newline, then two spaces, then "another", and so on.