input "Please enter the record to print : " ; Seqno$ OPEN "c:\coupons2015.txt" FOR INPUT AS #f search$=Seqno$ while eof(#f)=0 line input #f,l$ if word$(l$,2,",")=search$ then input1$ = (word$(l$,1,",")):input2$ = (word$(l$,3,",")):input3$ = (word$(l$,4,",")):input4$ = (word$(l$,5,",")):input5$ = (word$(l$,6,",")):input6$ = (word$(l$,7,",")) end if wend close #f print input1$,input2$,input3$,input4$,input5$,input6$,input7$
if trim$(word$(l$,2,","))=trim$(search$) then