micropathic
Well-known member
- Joined
- Oct 23, 2003
- Messages
- 75
How can I load the contents of a text file into an array and compare it with the contents of another text file? For instance, if I have a text file with a listing of all the files in a directory with on file listed on each line of the text file, how can I read line by line from that text file to see if another text file contains the file listed in each line? For instance, if my directory listing in text file 1 looks like this:
C:\3dlogo.gif
C:\654-7303 Window Guy.txt
C:\AUTOEXEC.BAT
C:\boot.ini
C:\BOXBOY.NES
C:\capture.avi
C:\cedb.dll
C:\command.com
C:\CONFIG.SYS
C:\Ctp.log
C:\devbld.pkg
C:\devcpu.pkg
How can I look in text file 2 to see if the text "C:\3dlogo.gif" exists and then see if the text "C:\654-7303 Window Guy.txt" exists, and so on.
Thanks for any help in advance!
C:\3dlogo.gif
C:\654-7303 Window Guy.txt
C:\AUTOEXEC.BAT
C:\boot.ini
C:\BOXBOY.NES
C:\capture.avi
C:\cedb.dll
C:\command.com
C:\CONFIG.SYS
C:\Ctp.log
C:\devbld.pkg
C:\devcpu.pkg
How can I look in text file 2 to see if the text "C:\3dlogo.gif" exists and then see if the text "C:\654-7303 Window Guy.txt" exists, and so on.
Thanks for any help in advance!