stg68 Posted March 25, 2008 Posted March 25, 2008 I am a beginner here. I would really appreciate your help. I have two txt files. Each file has 5 lines of values. I would like to build a two dimensional array from two files. Then, compare 1-st line from first file with the 1-st line of second file within array until end of file in order to compare all lines. If, not equal then message box. "Not Equal". THANKS MUCH FOR YOR HELP!
weaponx Posted March 25, 2008 Posted March 25, 2008 I am a beginner here. I would really appreciate your help. I have two txt files. Each file has 5 lines of values. I would like to build a two dimensional array from two files. Then, compare 1-st line from first file with the 1-st line of second file within array until end of file in order to compare all lines. If, not equal then message box. "Not Equal". THANKS MUCH FOR YOR HELP! #include<file.au3> Dim $aFile1, $aFile2 _FileReadToArray("file1.txt",$aFile1) _FileReadToArray("file2.txt",$aFile2) For $X = 1 to $aFile1[0] If $aFile1[$X] <> $aFile2[$X] Then MsgBox(0,"","Not Equal") Next
Squirrely1 Posted March 25, 2008 Posted March 25, 2008 (edited) I did a search of the forums for "file comparison" - in quotes - and found this and this post too - simple. Edited March 25, 2008 by Squirrely1 Das Häschen benutzt Radar
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now