|
Hi,
Stupid question i'm sure, but i'm a noob to KiX scripting (and this forum/community), but am a programmer by trade so answering this is hopefully not going to be too difficult for anyone here.
I'm looking for a good example of code (maybe from the UDF library) that can scan a text file one line at a time for non-blank strings so as to break those scanned lines down into smaller fields.
More specifically, for the input, a great example could be the output of a NETSTAT command piped into a text file, then scanned and broken down line by line into it's specific components (Proto,Local Address & Port,Foreign Address & Port, State, etc).
My feeling, as I said, is that this should be similar to something someone's already coded in the UDF and i could "borrow" the concept behind their code. Maybe it's something as simple conceptually as throwing each line into a single dimension 256 character array, then scanning character by character? Possibly there's an even more slick and finessed way to do it in KiX?
Anyone have any thoughts?
Thanks!
|