VB Code:
Dim SearchString as STring dim filec as string SearchString = "Visual Basic" open "C:\text1.txt" for input as #1 filec = input(lof(1),1) close #1 if instr(filec,searchstring) then open "C:\text2.txt" for input as #1 filec=input(lof(1),1) close #2 'then do whatever after you opened the second file end if




.
Reply With Quote