Hi Again,
I am working in stages with this, and have it working up to a point (will post code once have final draft) , I also needed to incorporate StringStripWS, so the IP addresses were the only data in the output file.
Was wondering what is the function to print to screen a single array element? to be saved in a text file.
so If i find a value of an array element [140] save the value of the element to text file?
#include <Array.au3>
#include <File.au3>
local $avArray
_FileReadToArray("C:\filtered_proc3.txt", $avArray)
_ArrayDisplay($avArray, "$avArray2")
local $targetHost = "pc005"
$sColumn = 1
$iIndex = _ArraySearch($avArray, $targetHost, 0, 0, 0, 1, 1, $sColumn)
If @error Then
MsgBox(0, "Not Found", '"' & $targetHost & '" was not found on column ' & $sColumn & '.')
Else
$test = _ArrayToString($iIndex)
EndIf
MsgBox(0, "", $iIndex)
Thanks for your help