asiawatcher,
Try this...
Wait one...OK, try this...not tested completely...
#include <array.au3>
local $aSizes[3][2]
$aSizes[0][0] = FileGetSize(@scriptdir & '\f1.txt')
$aSizes[0][1] = '\f1.txt'
$aSizes[1][0] = FileGetSize(@scriptdir & '\f2.txt')
$aSizes[1][1] = '\f2.txt'
$aSizes[2][0] = FileGetSize(@scriptdir & '\f3.txt')
$aSizes[2][1] = '\f3.txt'
_arraysort($aSizes,1)
local $str1 = fileread(@scriptdir & $aSizes[0][1])
local $str2 = fileread(@scriptdir & $aSizes[1][1])
local $str3 = fileread(@scriptdir & $aSizes[2][1])
local $astr1 = stringsplit($str1,','), $save_num
; create matching boundries to prevent "3" matching on "13", etc...
if stringlen($str2) > 0 then $str2 = '|' & stringreplace($str2,',','|') & '|'
if stringlen($str3) > 0 then $str3 = '|' & stringreplace($str3,',','|') & '|'
for $i = 1 to $astr1[0]
if ( stringinstr($str2, '|' & $astr1[$i] & '|') or stringlen($str2) = 0 ) _
and _
( stringinstr($str3, '|' & $astr1[$i] & '|') or stringlen($str3) = 0 ) _
then $save_num &= $astr1[$i] & ','
next
ConsoleWrite(stringtrimright($save_num,1) & @CRLF)
kylomas