i am reading a text file line by line with unformatted.
i am able to get the particular line which contains some string "comply" in the line.i need to get next line followed by particular string "comply".
def var vrow as char no-undo.
def var v-comply as char format "x(15)" no-undo.
input from text.txt.
repeat:
import unformatted vrow.
if entry(1,vrow," " ) = "Comply" then
v-comply = vrow.
end.
but i need to get the line followed by "COMPLY" in the text file.
Please help to rectify this.
i am able to get the particular line which contains some string "comply" in the line.i need to get next line followed by particular string "comply".
def var vrow as char no-undo.
def var v-comply as char format "x(15)" no-undo.
input from text.txt.
repeat:
import unformatted vrow.
if entry(1,vrow," " ) = "Comply" then
v-comply = vrow.
end.
but i need to get the line followed by "COMPLY" in the text file.
Please help to rectify this.