Me again. I'm looking for a very very basic Text Parser for VB6, which basically looks through a file for a certain character. I guess you couldn't really call it a parser, but anyway, it's close enough. Any help or ideas?
function text (file as string, search as string)
dim a, b, c, f as integer
dim d, e as string (and yes, you can use the ,'s in real VB coding to do this!)
c = freefile
a = 0
open file for input as #c
do while (EOF(#c) <> True)
a = a + 1
(this bit isn't going to be exactly coded)
input line (#c, d) (something like "line input" puts a line from channel #c into variable d)
f = instr (d, search) (or something like that - look for string manipulation in the object browser or whatever returns where the string is)
e = mid$ (d, f, len(search)) (seperates search from d)
or you can probably add words/change/whatever.
loop
close #c
return "line ="; a; "... text ="; d;"..."
end function