[In a message from Richard Mcconnell to All ]
RM> I need a program that will take a text file and add
RM> somthing and save the text changes to every line like this.
RM> Text Before:
RM> Help me with my program
RM> bla bla bla bla
This is easily done;
OPEN "original.txt" FOR INPUT AS #1
OPEN "added.txt" FOR OUTPUT AS #2
add$ = " added txt"
DO WHILE NOT EOF(1)
LINE INPUT #1, txt$
PRINT #2, txt$ + add$
LOOP
CLOSE
You can KILL the original file if you want, and then rename the one you
have created. Pretty much dealers choice after the conversion.
. pat.pridgen@svis.org
. http://www.ixc.net/~ppridgen
*SignIt 2.x #001*
... Programmer(n): One who makes the lies the Salesman told come true.
___ Blue Wave/DOS v2.30
--- Maximus 2.02
---------------
* Origin: THE LOFT in Auburn IN 219-925-5524 & 238-3222 HST/V34+ (1:236/7)
|