The purpose of the program is to call Larry Mears' new Instant Graphics TTP program, while passing the name of an artwork file as a parameter to the TTP.
I wrote the following code, based on old posts I read here, and it works great when compiled:
Code: Select all
file$="A:\IGNITE.IG"
c$=CHR$(LEN(file$))+file$
~SHEL_WRITE(1,1,0,c$,"A:\IGX1220.TTP")
Here's the revised code I wrote:
Code: Select all
file$=""
CLOSE #1
OPEN "I",#1,"A:\IGX.INF"
WHILE EOF(#1)=0
LINE INPUT #1,buffer$
file$=file$+buffer$
WEND
CLOSE #1
IF file$<>""
c$=CHR$(LEN(file$))+file$
~SHEL_WRITE(1,1,0,c$,"A:\IGX1220.TTP")
ENDIF
Clearly there's a problem reading the text file. It seems like a really straightforward task. Can anyone tell me what I'm doing wrong? How can I fix this?