I am trying to read 10 lines from a text file called Comics.txt and I want it to increase the var %matrhfound by 1 every time it finds a line in the text file which starts with DC: e.g:
DC: What Golden Age mystery-man was aided by the Newsboy Legion?
This is what I have so far and I cannot seem to get it working, am I missing something? Thank you
alias temp1 {
while (%iii <= 10) {
if (*DC* isin ($read(C:\Comics.txt, s, *DC*, %iii))) inc %matchfound 1
inc %iii 1
}
}