Function ReadFileLine2 Exch $0 ;file Exch Exch $1 ;file 2 Exch 2 Exch $2 Push $3 Push $4 Push $5 FileOpen $3 $0 r FileOpen $4 $1 r StrCpy $5 0 Loop: IntOp $5 $5 + 1 ClearErrors FileRead $3 $0 FileRead $4 $1 IfErrors +2 StrCmp $5 $2 0 loop FileClose $3 FileClose $4 Pop $5 Pop $4 Pop $3 Pop $2 StrCpy $3 $1 StrCpy $2 $0 Pop $1 Pop $0 Push $3 Push $2 FunctionEnd